package
0.0.0-20230218191148-4f50f5e56393
Repository: https://github.com/aveloper/blog.git
Documentation: pkg.go.dev
# Functions
NewJSONWriter creates a new instance of JSONWriter.
# Constants
DefaultErrorCode - in case other codes are irrelevant.
EmptyRequestBody - when the request body is empty.
InvalidJSON - when the json data in request in invalid.
InvalidJSONField - when a json field in request in invalid.
RequestSizeExceeds - when request body's size is large.
UnKnownJSONField - when json request body contains unnecessary field for the request.
UnknownParseError - when the parse error is none of the above categories.
ValidationFailed - when the parse error is none of the above categories.
# Structs
JSONWriter has functions for sending JSON response to client.
# Type aliases
No description provided by the author