package
0.0.0-20241121185327-65a29768111e
Repository: https://github.com/outofstack/game-library.git
Documentation: pkg.go.dev

# Functions

Decode unmarshalls JSON request body.
GetIDParam returns url id param.
NewError creates error with status code.
NewErrorFromMessage creates error with status code from message.
NewErrorFromStatusCode creates error from status code.
NewErrorWithFields creates error with status code and error fields.
Respond marshals a value to JSON and writes it to response.
Respond500 returns InternalServerError to client.
RespondError handles outgoing errors by marshaling an error response.

# Structs

Error contains information about web error.
ErrorResponse represents response in case of a web error.
FieldError represents error in a struct field.