articles-api/cmd/test/main.go

23 lines
314 B
Go

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