testhub/main.go
2022-05-25 19:24:12 +02:00

20 lines
380 B
Go

package main
import (
"log"
"net/http"
"git.andreafazzi.eu/andrea/testhub/logger"
"git.andreafazzi.eu/andrea/testhub/store"
)
const port = "3000"
func main() {
logger.SetLevel(logger.DebugLevel)
server := NewPlayerServer(store.NewMemoryPlayerStore())
logger.Infof("The API server is listening to port %s...", port)
log.Fatal(http.ListenAndServe(":"+port, server))
}