WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 29871970

(no title)

jbub | 4 years ago

The standard way to check for these was https://github.com/mdempsky/maligned.

It is now deprecated in favour of https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/fie....

You can now check for these using go vet:

    go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment@latest
    go vet -vettool=$(which fieldalignment) ./...

discuss

order

aneutron|4 years ago

Thanks ! That's nice to know !
powered by hn/api // news.ycombinator.com