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

# Functions

Response writer for handling error.
Send is a function to send json response to client It uses option pattern to accepts multiple options to customize the response.
WithData is an option to set data field in ResponseBody for Send function Pass pointer to a value if the data is a single struct with custom implementation of MarshalJSON.
WithMessage is an option to set message field in ResponseBody for Send function.
WithStatus is an option to override default OK status in ResponseBody for Send function.

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author