godoc http on current directory

963 views
Skip to first unread message

bsr

unread,
Feb 22, 2014, 8:25:52 AM2/22/14
to golan...@googlegroups.com
Hello,

How do you run godoc as a web server and show documentation only about the content in the directory. say, I cloned a git repo, and went to the root and tried like

export $GOPATH=`pwd`
godoc -http=:6060

it shows the doc for all the std libraries. I like to just see the doc for the package I cloned as a web page. is it possible?


Thanks.

bga...@golang.org

unread,
Feb 22, 2014, 9:52:42 PM2/22/14
to golan...@googlegroups.com
It will show the documentation for your packages in addition to the std libraries.  Look through the package list carefully and you should see them.

I don't believe there's currently a way to disable showing the standard libraries.
Reply all
Reply to author
Forward
0 new messages