Re: [go-nuts] godoc: display a full file example

2016-11-07 Thread mhhcbon
Thanks, a lot! Working now.


On Monday, November 7, 2016 at 9:17:00 PM UTC+1, Jan Mercl wrote:
>
>
> On Mon, Nov 7, 2016 at 9:08 PM  wrote:
>
> > Can someone highlight my mistake ?
>
> "The entire test file is presented as the example when it contains a 
> single example function, at least one other function, type, variable, or 
> constant declaration, and no test or benchmark functions. 
> "
>
> Your example_main_test.go lacks the condition specified in the "at least" 
> part.
>
> -- 
>
> -j
>

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


Re: [go-nuts] godoc: display a full file example

2016-11-07 Thread Jan Mercl
On Mon, Nov 7, 2016 at 9:08 PM  wrote:

> Can someone highlight my mistake ?

"The entire test file is presented as the example when it contains a single
example function, at least one other function, type, variable, or constant
declaration, and no test or benchmark functions.
"

Your example_main_test.go lacks the condition specified in the "at least"
part.

-- 

-j

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


[go-nuts] godoc: display a full file example

2016-11-07 Thread mhhcbon
Hi,

I m having some troubles to display a full file example in godoc, 
like sort package does here 
https://godoc.org/sort#example-Ints.

In godoc my example displays only the content of the Example_* method, 
but I want to display the whole file.
https://godoc.org/github.com/mh-cbon/http-multidir

Can someone highlight my mistake ?

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.
For more options, visit https://groups.google.com/d/optout.