- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleBoolFunc (0.09 sec)
-
src/flag/example_func_test.go
// // invalid value "256.0.0.1" for flag -ip: could not parse IP // Usage of ExampleFunc: // -ip IP address // IP address to parse // {ip: <nil>, loopback: false} } func ExampleBoolFunc() { fs := flag.NewFlagSet("ExampleBoolFunc", flag.ContinueOnError) fs.SetOutput(os.Stdout) fs.BoolFunc("log", "logs a dummy message", func(s string) error { fmt.Println("dummy message:", s) return nil })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 16 16:44:21 UTC 2023 - 1.3K bytes - Viewed (0)