Hacker News new | ask | show | jobs
by superjared 879 days ago
I inherited a go project that has two different commands under `cmd`, and it seems when I run this against one of those `main`s, it incorrectly detects what it thinks as dead code that is used in the other command.

Does anyone know how to work around this?

1 comments

    deadcode ./cmd/...
Thanks. That doesn't work for me (for some reason _nothing_ is reported even though I know there's dead code) but it at least gives me a lead.