Godoc is awesome, It allows you to browse all the documentation on your local machine by running the following command
1 | godoc -http=:8090 |
Once you do this you can happily browse through all the documentation offline. However, you can start this process as an upstart daemon and let it run in the background. All you have to do is create a file called /etc/init/godoc.conf
with the following content
1 | #Upstart script to start godoc server |
You just need to make sure that the env vars are adjusted to your setup. Also, using -index=true
runs a full text search on all your documentation (which is simply awesome). Now, you will have your godoc server at http://localhost:8090/ all the time.
On a related note, godoc can be used from the command line like:
1 | #godoc <pkg name> Type/Func |
I am currently working on LiveForm which makes
setting up contact forms on your website a breeze.