25 lines
318 B
Go
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")
|
|
}
|