mirror of
https://github.com/github/codeql.git
synced 2026-07-23 20:22:02 +02:00
12 lines
195 B
Go
12 lines
195 B
Go
package main
|
|
|
|
func controller(msg string) {
|
|
if msg == "start" { // $ Source
|
|
start()
|
|
} else if msg == "start" { // $ Alert // NOT OK
|
|
stop()
|
|
} else {
|
|
panic("Message not understood.")
|
|
}
|
|
}
|