Trying to generate docs for my go package but not sure how to generate html docs
Tried with go doc but it just spits out the text version but I want html version.
looking at go help doc there is something that says about html go doc template.new but not sure how to use it.
Also tried with godoc, but unable to make it work.
installed it with
go get golang.org/x/tools/cmd/godoc
and it is present in the directory golang.org/x/tools/cmd
but when I try to run it using go tool godoc it throws an error saying:
go:no such tool godoc
and nothing in go bin folder that i can use.
Can anyone please tell, how can i make it work?