package main

import (
	"fmt"
	"html"
	"log"
	"net/http"
	"strconv"
)

func main() {
	http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
		Routes.add("Url", func() {
			fmt.Println("Test")
		})
		fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path))
	})

	log.Fatal(http.ListenAndServe(":"+strconv.Itoa(ServerPort), nil))
}
