Le lundi 23 septembre 2019 18:35:06 UTC+2, Abhinav Gupta a écrit :
> [...]
> myRouter.Handle("/endpoint1/", http.HandlerFunc(h.Endpoint1)).Methods("POST", 
> "OPTIONS")
> // or
> myRouter.HandleFunc("/endpoint1/", h.Endpoint1).Methods("POST", "OPTIONS")
>

Should that instead be (replacing 'h.Endpoint1' with 'handler.Endpoint1')?

myRouter.Handle("/endpoint1/", 
http.HandlerFunc(handler.Endpoint1)).Methods("POST", "OPTIONS")
// or
myRouter.HandleFunc("/endpoint1/", handler.Endpoint1).Methods("POST", "OPTIONS")

g.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/23947.57178.703379.782942%40alice.local.

Reply via email to