musique/server/src/musique-bridge.go

28 lines
424 B
Go
Raw Normal View History

2022-12-05 22:34:40 +01:00
package main
import (
"C"
"fmt"
"time"
)
//export ServerInit
func ServerInit() {
fmt.Println("Initializing server")
}
//export ServerBeginProtocol
func ServerBeginProtocol() {
2022-12-06 10:20:10 +01:00
protocol := []string{
2022-12-05 22:34:40 +01:00
"Make the plan",
"Execute the plan",
"Expect the plan to go off the rails",
"Throw away the plan",
}
for i, msg := range protocol {
fmt.Printf("%d. %s\n", i, msg)
time.Sleep(300 * time.Millisecond)
}
}