articles-api/main.go

25 lines
341 B
Go
Raw Normal View History

package main
import (
2018-07-05 17:18:25 +00:00
"git.xdrm.io/go/aicra"
"log"
"net/http"
)
func main() {
listen_addr := "127.0.0.1:4242"
2018-07-07 21:09:19 +00:00
server, err := aicra.New("manifest.json")
if err != nil {
panic("cannot load config")
}
log.Printf("[Server up] %s\n", listen_addr)
err = http.ListenAndServe(listen_addr, server)
if err != nil {
panic(err)
}
}