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

Check out the default bind hook implementation here.

Check out the signature of the BindHook.

Last updated