5 ms·
The standard way to check for these was https://github.com/mdempsky/maligned https://github.com/mdempsky/maligned. It is now deprecated in favour of https://pk
by jbub 5y ago
The standard way to check for these was https://github.com/mdempsky/maligned https://github.com/mdempsky/maligned.
It is now deprecated in favour of https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/fieldalignment 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) ./...
- aneutron 5y agoThanks ! That's nice to know !