Archived
1
0
This repository has been archived on 2025-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
Gastenboek/gastenboek.go
2014-10-12 02:34:28 +02:00

25 lines
387 B
Go

package main
import (
"os"
"os/signal"
)
// SUPER SECRET CODE
const code int = 14101992
// IT'S A TRAP! (This catches all signals so the program can't be interrupted)
func signalCatcher() {
c := make(chan os.Signal)
signal.Notify(c)
for _ = range c {
//fmt.Printf("Signal received: %v", sig)
}
}
// This is where it all starts
func main() {
go signalCatcher()
showMenu()
}