package main import ( "flag" "fmt" ) var workers int; func main() { flag.IntVar(&workers,"r", 1, "concurrent processing ,default 1 .") flag.Parse() fmt.Println(workers); }
package main import ( "flag" "fmt" ) var workers int; func main() { flag.IntVar(&workers,"r", 1, "concurrent processing ,default 1 .") flag.Parse() fmt.Println(workers); }