Remove dead code easily

96 views
Skip to first unread message

Navjot Sharma

unread,
Apr 11, 2026, 4:48:34 PM (3 days ago) Apr 11
to golang-nuts

Hey everyone,

I came across a useful Go package for identifying and cleaning up dead code in projects. Thought it might be helpful for those working on large or evolving codebases.

https://pkg.go.dev/github.com/go-fynx/deadcode

It helps detect unused functions, variables, and code paths, making it easier to keep your codebase clean and maintainable.

Would be great to hear if anyone has tried it or has similar tools to recommend.

Cheikh Seck

unread,
Apr 11, 2026, 6:01:45 PM (3 days ago) Apr 11
to golang-nuts
You can also try golang.org/x/tools/cmd/deadcode
Reply all
Reply to author
Forward
0 new messages