For anyone interested in running a local godoc server on FreeBSD:
The attached rc.d script starts godoc as an unprivileged user, and
arranges for it to listen on
127.0.0.1:6060 and log to
/var/log/godoc.log. You can change all of these settings in rc.conf.
I run the server behind nginx and it's been working very well. The one
thing I couldn't figure out is if there is some simple way to specify
a root path for the URLs. The generated links are always absolute, so
serving the documentation from
http://myserver/godoc/... doesn't work.
If someone has a solution for this, please let me know.
- Max