package
0.1.6
Repository: https://github.com/redmapletech/ginx.git
Documentation: pkg.go.dev

# Functions

As binds the body or query into an instance of the struct pointer returned by pv Use To() instead unless the struct requires default values to be set.
SetDefaultAbort sets the default abort on error behaviour for all handlers.
SetDefaultCode sets the default error response status code for all handlers.
SetDefaultDetail sets the default error response detail field behaviour for all handlers.
SetDefaultKey sets the default context key to attach the unmarshalled struct for all handlers.
SetDefaultResponse sets the default error response behaviour for all handlers.
To binds the body or query into a new instance of the provided struct.
WithAbort sets the middleware to abort on error for the current handler.
WithCode sets the middleware to send error responses with a custom status code for the current handler.
WithDetail sets the middleware to send error detail field for the current handler.
WithKey sets the context key to attach the unmarshalled struct for the current handler.
WithResponse sets the middleware to send error responses for the current handler.

# Type aliases

Modifier function for customising bind handler behaviour.