package main import ( "fmt" "log" "net/http" //"github.com/jmoiron/sqlx" ) func hello(w http.ResponseWriter, req *http.Request) { fmt.Fprintf(w, "hello\n") } func headers(w http.ResponseWriter, req *http.Request) { for name, headers := range req.Header { for _, h := range headers { fmt.Fprintf(w, "%v: %v\n", name, h) } } } func main() { log.SetPrefix("RecountServer: ") log.SetFlags(0) http.HandleFunc("/hello", hello) http.HandleFunc("/headers", headers) http.ListenAndServe(":8090", nil) //fmt.Println("Hello World") }