

- #Godocs go lansing mi update#
- #Godocs go lansing mi software#
- #Godocs go lansing mi code#
- #Godocs go lansing mi windows#
Ideally, it should be coupled to the code itself so the documentation evolves along with the code. Of course it must be well-written and accurate, but it also must be easy to write and to maintain.
#Godocs go lansing mi software#
Documentation is a huge part of making software accessible and maintainable. Godoc: documenting Go code The Go project takes documentation seriously. So how do I format my documentation properly inside the Go code files? The documentation that I see from the standard library files looks much better. Now the next problem I have, my documentation looks really bad.
#Godocs go lansing mi update#
So in LiteIDE when you update your documentation and save the code file, the Godoc tool will show the changes immediately. Godoc tool is always reading the source code files to produce the latest version of the documentation. I personally don’t follow that convention. Apparently the Godoc tool has no problems finding the source code files. Not all developers follow that same convention and you have the freedom to choose.

This is because the Go team likes to put source code for reusable libraries within a project under pkg.
It seems they are located inside a folder called pkg under src. So if I can see documentation for the standard Go packages, then the source code for those packages must be on my machine. There are no extra files on my machine, LiteIDE is streaming the output of Godoc directly into the screen. Now I produced the same documentation I am seeing inside of LiteIDE. Godoc -html /Users/bill/Spaces/GoPackages/src/ArdanStudios/threadpool But I am seeing HTML inside of LiteIDE? I found the -html option.

Suddenly the documentation appeared on my screen in text format. Godoc /Users/bill/Spaces/GoPackages/src/ArdanStudios/threadpool
#Godocs go lansing mi windows#
LOL, boy it is difficult coming from a Windows environment for the past 20 years.Īfter reading the documentation a bunch of times I opened up a Terminal session and ran the following command. The very first line states, " Godoc extracts and generates documentation for Go programs." Ok, so this program is being used by LiteIDE but how? Where are the files that Godoc is generating for all this documentation? Then I found this document from the Go team: So how the heck was this documentation being generated and published on the screen? So I looked around in both /usr/local/go and my own space to find the documentation files and there was nothing. There is only one problem, I haven’t created any documentation yet. I quickly reasoned that LiteIDE was using the GOROOT and GOPATH variables to find the documentation. When I clicked on my package ArdanStudios/threadpool from within the LiteIDE Godoc search tool it used the pdoc URL scheme, pdoc:ArdanStudios/threadpool. The Godoc viewer will automatically open the package documentation for the chosen item.
