On Wed, Jan 16, 2019, 11:41 AM 伊藤和也 <kazya.ito.dr...@gmail.com> wrote:

> I added some commets to the source file which belongs to "main" package
> but the comments doesn't appear in godoc in html but it appears when it
> belongs to other package "hello".
>

godoc is meant to provide automatically generated documentation about
exported library symbols to developers, using only the source code.

There is a github issue talking about how only the main package
documentation can be shown in godoc for commands but there is a desire to
also see exported functions from that main command
https://github.com/golang/gddo/issues/397

>From that issue, this main command shows package docs
https://godoc.org/golang.org/x/tools/cmd/godoc

And is defined in this file
https://github.com/golang/tools/blob/master/cmd/godoc/doc.go

-- 
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to