I am unable to reproduce using a small test app on either Windows or 
Ubuntu, using go 1.10.3. In all cases the init() function in main is run 
when the test binary is run. Perhaps you could provide a minimal 
reproducible example?

On Monday, August 13, 2018 at 8:21:30 PM UTC-4, Gert wrote:
>
> Hi, `go test` runs the main init but the binary created by 
>
> go test -c -a -tags 'netgo noplugin' -gcflags "all=-N -l"
>
> doesn't. Is this a bug? Also it's seems you can't compile static test 
> binaries only non test binaries can be compiled static?
>

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