You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
bradfitz
changed the title
FlagSet.Usage func() is nil after calling flag.NewFlagSet causing a panic when Usage() is called
flag: NewFlagSet returns a FlagSet with a nil Usage func
Sep 1, 2016
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.6.3 darwin/amd64
What operating system and processor architecture are you using (
go env
)?Mac OS X 10.11.6
GOARCH="amd64"
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
What did you do?
Create a new flag.FlagSet and call Usage() function.
Please, find the source code related to this issue in the following link: https://play.golang.org/p/_GujXXUvno
What did you expect to see?
Printed information on screen about used flags.
What did you see instead?
Runtime error because of nil pointer dereference
The text was updated successfully, but these errors were encountered: