abhinav / abhinav/requiredfield
flag: -strict mode
Aberta
enhancement
- Linguagem predominante
- Go
- Estrelas
- 34
- Forks
- 4
- Merge médio
- 5min
- PRs com merge (30d)
- 2
Descrição
In strict mode, the linter will disallow `var`-based instantiations of structs with required fields. (Pointers would be allowed.) The argument for that being that with `var x Foo` is equivalent to `x := Foo{}`, and that's not allowed if there are any required fields.
This would be opt-in.
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.