nmdc-telegramfrontend/main.go

25 lines
318 B
Go
Raw Normal View History

2018-06-03 03:27:50 +00:00
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")
}