When all the fields of a struct are omitted in a declaration, use the var
form to declare the struct.
Bad | Good |
---|---|
user := User{} |
var user User |
- git clone [link]
- make build_plugin
- [!!! you need compiled file from https://github.com/golangci/golangci-lint]
- ./golangci-lint -c golangci.yml run [source code]