Your example function is named ExampleMain(). This means that it is
supposed to document function Main() or type Main.

However, there is no function Main() or type Main in the package. Thus
the example is not visible in the documentation because there is nothing
for it to attach to.

See for example the following about the naming rules:

https://blog.golang.org/examples#TOC_4.


Janne Snabb
sn...@epipe.com

On 2017-03-06 17:35, mhhc...@gmail.com wrote:
> Hi,
> 
> in my package here, what did i do wrong so the ExampleMain won t show up ?
> 
> https://github.com/mh-cbon/emd
> 
> https://godoc.org/github.com/mh-cbon/emd
> 
> Im expecting to see
> https://github.com/mh-cbon/emd/blob/master/main_test.go#L13
> 
> Note, go test works fine.
> 
> thanks!
> 
> -- 
> 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
> <mailto: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