You can append this to the URL:

?m=src

So this:

http://localhost:9000/pkg/myapp

becomes

http://localhost:9000/pkg/myapp/?m=src

From: https://godoc.org/golang.org/x/tools/cmd/godoc

You can still only see exported functions. If you pull out the code you
want to document into packages (other than "main") then they will be
documented normally. You're running into this problem because you're doing
something non-standard -- having a bunch of separate "main" applications in
a single folder. I don't know how/if the above will work on a folder with
multiple files containing "func main," though.

-- 
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