1
0
Fork 0
empact/bin/empact-server.go

20 lines
283 B
Go

package main
import (
"flag"
"github.com/localhots/empact/config"
"github.com/localhots/empact/db"
"github.com/localhots/empact/server"
)
func main() {
flag.Parse()
config.Load()
if err := db.Connect(config.C().DatabaseURI); err != nil {
panic(err)
}
server.Start()
}