[Solved] Receive from non-chan type *bool

Those two lines in your main function shadow your global variable declaration: optQuit := getopt.BoolLong(“quit”, 0, “Help”) optRun := getopt.BoolLong(“run”, ‘r’, “Help”) If you only use them, to get a nice usage, why not create a usage function yourself? If you insist on using getopt just to create a usage, do _ = getopt.BoolLong(“quit”, 0, … Read more