musique/server/src/musique-bridge.go

28 lines
425 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() {
protocol := []string {
"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)
}
}