package
0.0.0-20220509123409-e130abaff0fc
Repository: https://github.com/foxfurry/memstore.git
Documentation: pkg.go.dev

# Functions

Handle writes given error to gin context If giver error is HttpErr, it will extract status code and message and use them Otherwise it will use 500 status code and marshal error.
New creates HttpErr from given message and status code.
Wrap creates a generic error by wrapping given error into message.
WrapHttp creates a HttpErr by wrapping given error into message and adding status code.

# Structs

HttpErr implements error interface and contains status code and message HttpErr can be used with Handle method to properly write it to gin context.