2018-07-08 13:29:25 +00:00
|
|
|
package main
|
2018-06-10 20:49:32 +00:00
|
|
|
|
|
|
|
import (
|
2018-07-05 17:18:25 +00:00
|
|
|
"git.xdrm.io/go/aicra"
|
2018-06-10 20:49:32 +00:00
|
|
|
"log"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
|
2018-07-07 21:09:19 +00:00
|
|
|
server, err := aicra.New("manifest.json")
|
2018-06-10 20:49:32 +00:00
|
|
|
if err != nil {
|
2018-07-07 16:13:08 +00:00
|
|
|
log.Fatal("cannot load config", err)
|
2018-06-10 20:49:32 +00:00
|
|
|
}
|
|
|
|
|
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)
|
2018-06-10 20:49:32 +00:00
|
|
|
if err != nil {
|
|
|
|
log.Fatalf("*** server failed (%s)\n", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|