golint has an outstanding problem with generating spurious warnings, when //go:generate... lines are used atop of package declarations. It may even trigger for build tags as well.
Regardless, golint is now archived. The author recommends using staticcheck instead.
golint has an outstanding problem with generating spurious warnings, when
//go:generate
... lines are used atop of package declarations. It may even trigger for build tags as well.Regardless, golint is now archived. The author recommends using staticcheck instead.
Update: