tiny-url-ex/main.go

23 lines
321 B
Go

package aicraserver
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)
}
}