func main() { http.HandleFunc("/hello", HelloServer) err := http.ListenAndServer(":12345", nil) if err != nill { log.Fatal("ListenAndServer: ", err) } }
func main() { http.HandlerFunc("/", indexHandler) http.HandlerFunc("/logout", logout) http.ListenAndServer("localhost:80", nil) }