small pixel drawing of a pufferfish vore

main.go

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
package main

import (
	"log"
	"net/http"
)

func main() {
	s := New()
	log.Println("listening on http://localhost:5544")
	mux := http.NewServeMux()
	mux.HandleFunc("/", s.rootHandler)
	mux.HandleFunc("/login", s.loginHandler)
	mux.HandleFunc("/logout", s.logoutHandler)
	mux.HandleFunc("/register", s.registerHandler)
	s.Start(":5544", mux)
}