mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
13 lines
167 B
Go
13 lines
167 B
Go
package main
|
|
|
|
func controller(msg string) {
|
|
switch {
|
|
case msg == "start":
|
|
start()
|
|
case msg == "start":
|
|
stop()
|
|
default:
|
|
panic("Message not understood.")
|
|
}
|
|
}
|