package main import ( "log" "net/http" ) const hostAndPort = ":5000" func main() { server := NewLoginServer(NewInMemoryUserStore()) if err := http.ListenAndServe(hostAndPort, server); err != nil { log.Fatalf("could not listen on port %v", err) } }