golang-exercises/golangr/goroutines/main.go

28 lines
339 B
Go
Raw Normal View History

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