func init() { validate_environment() monitor.ConfigFromEnv() if !monitor.EmailEnabled() { log.Fatal("[!] error configuring monitor: mail not configured") } if !monitor.PushoverEnabled() { log.Fatal("[!] error configuring monitor: pushover not configured") } }
func init() { log.Println("[+] initialising application") validate_environment() monitor.ConfigFromEnv() if !monitor.EmailEnabled() { log.Fatal("[!] error configuring monitor: mail not configured") } if !monitor.PushoverEnabled() { log.Fatal("[!] error configuring monitor: pushover not configured") } }