golang/gddo

splitdwraf runtime issue: "function main is undeclared in the main package"

nellierosenfield opened this issue · 2 comments

Hello,

While attempting to retrieve tools (mainly godoc) by using go get golang.org/x/tools/cmd/..., I keep running into an error thrown by golang.org/x/tools/cmd/splitdwarf.

This is what I get in my shell:

go get golang.org/x/tools/cmd/...
# golang.org/x/tools/cmd/splitdwarf
runtime.main_main·f: function main is undeclared in the main package

However, if I try to retrieve godoc directly via go get golang.org/x/tools/cmd/godoc, I do not receive this message.

This doesn't affect me at the moment, since I am just learning how to use Go, but I thought it would be beneficial to bring to the attention of more capable individuals.

If you need anymore information, I will gladly provide what I can.

Thank you very much!
Nilaja D Williams

I think you want to raise this issue with golang/go, as that is the issue tracker for all golang/tools related things. This repository is the source for the actual godoc.org website, and is not part of the godoc tool IIRC.

Oh! Okay, I will do that. Thank you very much!