Something went wrong. Try again.
Multiplayer video game backend in Go
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334// internal/holonet/server.go// purpose: // author: daniel daumpackage
import ( "fmt" "net/http"
"git.danieldaum.net/daniel-daum/holonet/internal/config")
// setup control pane http server// pull and provide configsfunc holonet() *http.Server { settings := config.LoadSettings()
fmt.Printf("HOST IS SET: %s\n", settings.HOST) fmt.Printf("PORT IS SET: %s\n", settings.PORT) fmt.Printf("ENV IS SET: %s\n", settings.ENV)
fmt.Println("STARTING SERVER") s := &http.Server{}
return s}
// start server// wrap in graceful shutdownfunc Serve() {
holonet().ListenAndServe()}