golang / gddo

Go Doc Dot Org
https://godoc.org
BSD 3-Clause "New" or "Revised" License
1.1k stars 266 forks source link

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

Closed nellierosenfield closed 5 years ago

nellierosenfield commented 5 years ago

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

jackwilsdon commented 5 years ago

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.

nellierosenfield commented 5 years ago

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