package main func main() { cfg, err := ReadConfig("config.json") if err != nil { panic(err) } checkLoop(cfg.Targets) }