17 lines
259 B
Go
17 lines
259 B
Go
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)
|
|
}
|
|
}
|