I'm trying to generate the documentation for my packages in Golang. Ultimately I want to generate the documentation as part of CI/CD and host it inside our network. I know about godoc
and using the instructions here I tried exactly as it states, in my package directory, however all I get is the full documentation for go itself, but not custom packages.
If I go to :6060/src, I can see a list of the contents of the src directory, and within that, I can see
However when I click on it, I get the response
I don't know if that's why I cant see my packages in the documentation, it would seem odd as $GOPATH is set to Users/me/go
.
But if that's not related, how can I generate the static html files for specific packages such as my own? It seems much harder to google an answer for this that I expected. I know other tools use doxygen, but godoc doesn't seem equivalent in any way