My team has all our Golang code in a monorepo.
- Various package subdirectories with library code.
- Binaries/services/tools under
cmd
We've had it for a while and are doing some cleanup. Are there any tools or techniques that can find functions not used by the binaries under cmd
?
I know go vet
can find private functions that are unused in a package. However I suspect we also have exported library functions that aren't used either.