loginToTemplate/main.go

17 lines
259 B
Go
Raw Permalink Normal View History

2022-03-01 16:55:49 +00:00
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)
}
}