2024-02-26 11:59:46 +01:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
)
|
|
|
|
|
2024-02-27 08:04:25 +01:00
|
|
|
var check bool = false
|
|
|
|
var choice string
|
|
|
|
|
2024-03-02 10:00:45 +01:00
|
|
|
func main() {
|
|
|
|
var numChoice int
|
2024-02-27 08:04:25 +01:00
|
|
|
|
|
|
|
for {
|
2024-03-02 10:00:45 +01:00
|
|
|
fmt.Printf("[1] Basic concurrency\n")
|
2024-02-26 11:59:46 +01:00
|
|
|
|
2024-03-02 10:00:45 +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-27 08:04:25 +01:00
|
|
|
}
|
|
|
|
}
|
2024-03-02 10:00:45 +01:00
|
|
|
|
2024-02-26 11:59:46 +01:00
|
|
|
}
|