articles-api/main.go

23 lines
321 B
Go
Raw Normal View History

2018-07-08 08:00:17 +00:00
package aicraserver
import (
2018-07-05 17:18:25 +00:00
"git.xdrm.io/go/aicra"
"log"
)
func main() {
2018-07-07 21:09:19 +00:00
server, err := aicra.New("manifest.json")
if err != nil {
2018-07-07 16:13:08 +00:00
log.Fatal("cannot load config", err)
}
2018-07-07 16:13:08 +00:00
log.Printf("[Server up] 0.0.0.0:4242\n")
2018-07-07 21:09:19 +00:00
err = server.Listen(4242)
if err != nil {
log.Fatalf("*** server failed (%s)\n", err)
}
}