func main() { log.Println("[+] app starting") go monitor.Monitor(bot.Run) log.Println("[+] launching web front end") frontend.HttpServer() log.Println("[+] app stopping") }
func main() { if len(os.Args) > 1 && os.Args[1] == "persist" { monitor.CanExit = false } monitor.ConfigFile = "monitor.json" err := monitor.ConfigFromJson() if err != nil { fmt.Println("[!] error configuring monitor: ", err) os.Exit(1) } monitor.Monitor(run) }
func main() { go monitor.Monitor(bot.Run) frontend.HttpServer() }