package main import ( "flag" "fmt" ) func main() { var vegetable string flag.StringVar(&vegetable, "vegetable", "potato", "choice of veggie") flag.Parse() fmt.Println(vegetable) } var ( myveg = "broccoli" )