abhinav / abhinav/requiredfield

flag: -strict mode

Aberta
#3 0 comentários 0 reações 0 responsáveis Ver no GitHub
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

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.