func init() { var err error conf, err = config.Get("./config.json") if err != nil { panic(err) } }
//RunContinuosly loads a local config file specified in cp, //starts up and keeps running the broadcast, //handling all the updates and scheduling. func RunContinuosly(cp string) (err error) { for { var ( c *config.Config mgr *Manager ) c, err = config.Get(cp) if err != nil { return } c.Notice("Reloading manager") mgr, err = New(c) if err != nil { return } mgr.Run() } return }