package main import ( "fmt" ) var check bool = false var choice string func main() { var numChoice int for { fmt.Printf("[1] Basic concurrency\n") fmt.Printf("\rChoose your function: ") fmt.Scanln(&numChoice) switch numChoice { case 1: fun1() default: fmt.Printf("Choose an actual function, please\n") } } }