Closed qfornaguera closed 1 year ago
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.
hello,
- [X] Yes, I've tried with the standalone linter if available (e.g., gocritic, go vet, etc.). (https://golangci-lint.run/usage/linters/)
unused
is a part of staticcheck.
$ staticcheck -version
staticcheck 2023.1.6 (v0.4.6)
$ staticcheck ./...
main.go:33:26: func (*baseBuilder[B]).build is unused (U1000)
The problem seems to be described here: https://github.com/dominikh/go-tools/issues/1294
wow such a mistake from my part, sry to bother you. I've kinda read that checkbox paying not much attention and misunderstood it. Great that is already reported. I'll add any useful information in that link. Thanks for the rapid response! Cheers!
Welcome
Description of the problem
Lint says:
But it is actually used...
As a hint. Exporting the method fixes lint issues 👇
Further details...
the struct implements this unexported interface
(งツ)ว
Not in a rush because I can go along exporting the method. But just to let you know it is happening 👀
Version of golangci-lint
Configuration
Go environment
Verbose output of running
A minimal reproducible example or link to a public repository
Validation