Bind hook

The bind hook is the hook called to bind the incoming request body to the input structure provided in your handler.

A bind hook must have this signature:

type BindHook func(w http.ResponseWriter, r *http.Request, in interface{}) error
circle-info

Check out the default bind hook implementation herearrow-up-right.

Check out the signature of the BindHookarrow-up-right.

Last updated