https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/shadow

there is a tool, now to learn how to use it... i am almost certain i'm gonna find a heap of potential gotchas in this codebase

well, it found mostly typical examples of scope shadows in the form of := declarations with an error value in the return but no obvious scope shadows... oof, the pain!

Reply to this note

Please Login to reply.

Discussion

No replies yet.