package main import ( "fmt" "net/http" "net/http/httputil" ) const apiV1Prefix = "/api/v1/" //apiV1Main version 1 main entry for all wechat callbacks // func apiV1Main(w http.ResponseWriter, r *http.Request) { logRequestDebug(httputil.DumpRequest(r, true)) path := r.URL.Path[len(apiV1Prefix):] fmt.Fprintf(w, "Protocol = %s, path= %s \n", r.Method, path) }