I have this:
methods := [...]string{"POST", "PUT"}
router.HandleFunc(h.makeRegisterNewUser("/api/v1/register", v)).Methods("POST", "PUT")
that works except methods
is unused. If I try this:
methods := [...]string{"POST", "PUT"}
router.HandleFunc(h.makeRegisterNewUser("/api/v1/register", v)).Methods(methods...)
I get this error:
cannot use methods (type [2]string) as type []string in argument to router.HandleFunc(h.makeRegisterNewUser("/api/v1/register", v)).Methods
I can't figure this one out