This works fine for me.
http://play.golang.org/p/OWeR2HnJS6 shows a
simple example; running 'go test -foo=hello' works and shows 'hello'
in the test output.
How are you defining your flag? Can you share your code?
Is that invocation ("go test -custom=42") exactly what you are
running? Note that 'go help testflag' says
"Flags not recognized by 'go test' must be placed after any specified packages."
-Caleb
> --
> 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...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.