-j
[unused aa057c0] all: remove unused public and private symbols
104 files changed, 32 insertions(+), 897 deletions(-)
And i've barely scratched the surface. Thanks Dominik!
Hi,
I want to announce a tool I just released, called 'unused'[1]. It reports
unused identifiers in your code – for example it complains about
unused unexported functions.
There's a complete list of checks[2] in the README[3].
You can install unused via `go get honnef.co/go/unused/cmd/unused`.
> [...]
> > You can install unused via `go get honnef.co/go/unused/cmd/unused`
> > <http://honnef.co/go/unused/cmd/unused>.
> >
> >
> Thanks for the tool.
>
> It seems that there is a memory leak, since when I run:
> unused ...
> the program eats all my RAM:
>
> /home/manlio/.local/lib/go/src/launchpad.net/gozk/zookeeper/zk.go:15:23:
> fatal error: zookeeper.h: No such file or directory
> compilation terminated.
>
> /home/manlio/.local/lib/go/src/github.com/google/gopacket/pfring/pfring.go:13:20:
> fatal error: pfring.h: No such file or directory
> compilation terminated.
> zsh: killed unused ...
>
> It is possible that the leak was caused by the two compilation errors.
>
> When I run unused over the standard library, there are no problems.
How much (available) RAM do you have, and how many packages are in
your GOPATH? (go list ... | wc -l)