package
0.0.0-20240923064848-08c5b1d65131
Repository: https://github.com/prawirdani/golang-restapi.git
Documentation: pkg.go.dev

# Functions

BindValidate is a helper function to bind and validate json request body, requires a struct that implements RequestBody interface.

# Interfaces

RequestBody is an interface for request body that needs to be validated and sanitized when binding to struct on handler function It is recommended to implement this interface on every request body model struct Should use this alongside with BindValidate function from binder.go.