Reputation: 793
I am writing a program in Go and have formatted my comments to assist in making documents. Does godoc have the ability to make my output look professional? Similar to what is seen on the Go website? I spent a long time and was able to get the information to display on the command line but running the http command always just brought up the Go homepage. I'm really at a loss for how to get it to display my code's comments.
Upvotes: 1
Views: 496
Reputation: 49235
Yes, if you go to the /pkg
folder of the generated golang.org site, you'll see your packages and everything installed by go-get
among the standard library modules.
You can however go to the root source of either your GOPATH
or the project you want to document, and try: godoc -http=":6060" -goroot=`pwd`
Upvotes: 1