On Mon, Oct 05, 2015 at 03:28:33AM -0700, Fredrik Wallgren wrote:
Too bad that there isn't a convention like, if you put a man file in the
> cmd structure it gets installed with go get.
> Example: cmd/app/main.go and cmd/app/app.1 produces a bin and installs the
> man page.
Go is intended to be cross-platform. Installing man files doesn't make sense on, say, Windows.
Note that go get *will* download man files along with everything else if you include them in your source tree.
It's a valid strategy to bundle additional installation scripts in a go-gettable package,
so that users can go get your command and then, if they want, run make to install the documentation.
You could even abandon go get entirely and use a different build system,
if you think that's appropriate.
As for users reading godoc documentation...
If your users are the sort of people who read man pages, they shouldn't have any problems using godoc.
It's pretty unfortunate that I have to know what language a program is written in to look up its manual, though.
Maybe it would be worth it to add troff output to godoc...