nmdc-telegramfrontend/main.go
2018-06-03 15:27:50 +12:00

25 lines
318 B
Go

package main
import (
"flag"
"log"
)
func main() {
configFile := flag.String("ConfigFile", "config.json", "")
flag.Parse()
svr, err := NewNTFServer(*configFile)
if err != nil {
log.Fatal(err.Error())
}
err = svr.Run()
if err != nil {
log.Fatal(err.Error())
}
log.Println("Server shutting down")
}