StatusApp/main.go

15 lines
188 B
Go

package main
2020-04-23 07:42:16 +07:00
import (
"status/server"
)
func main() {
cfg, err := ReadConfig("config.json")
if err != nil {
panic(err)
}
2020-04-23 07:42:16 +07:00
go checkLoop(cfg.Targets)
server.StartServer(cfg.Port)
}