Hacker News new | ask | show | jobs
by hazz99 2440 days ago
Whaaaat are all the godocs available offline? Can I access this via the terminal?

That's amazing

1 comments

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
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."