On a Mac? Love godoc? Load up godoc -http=:6060
at boot time with a LaunchAgent:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.golang.godoc</string>
<key>EnvironmentVariables</key>
<dict>
<key>GOPATH</key>
<string>/Users/parkr/.go</string>
</dict>
<key>ProgramArguments</key>
<array>
<string>/usr/local/opt/go/libexec/bin/godoc</string>
<string>-http=localhost:6060</string>
</array>
<key>KeepAlive</key>
<true/>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/tmp</string>
</dict>
</plist>
Then load it up:
$ launchctl load ~/Library/LaunchAgents/org.golang.godoc.plist
And surf. Now, go forth and document!