Routing Enhancements for Go 1.22
I have this in the init func for main
http.HandleFunc("GET /posts", handlePost2)
404 page not found.
Am I doing something wrong? Maybe the problem lies elsewhere?
Thank you,
Roger
func handlePost2(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "GET test handlePost2")
}