articles-api/cmd/test/main.go

23 lines
309 B
Go

package main
import (
"git.xdrm.io/go/aicra"
"log"
)
func main() {
srv, err := aicra.Init("manifest.json")
if err != nil {
log.Fatal("cannot load config", err)
}
log.Printf("[Server up] 0.0.0.0:4242\n")
err = srv.Launch(4242)
if err != nil {
log.Fatalf("*** server failed (%s)\n", err)
}
}