Hacker News new | ask | show | jobs
by giancarlostoro 2440 days ago
Yes you can! It's one of the first times I even thought about offline docs that are rendered like that:

  godoc -http=:6060

Will do it for you. Then just visit localhost:6060
1 comments

The current problem though is that it requires all your code + all the dependencies to be under $GOPATH/src. https://github.com/golang/go/issues/33655 starts with: "At this time, the godoc command is only able to display packages that are located in a GOPATH workspace."