package
0.0.0-20220620184616-bcd07ded310f
Repository: https://github.com/lordvidex/go-example-server.git
Documentation: pkg.go.dev

# Functions

ErrorToJSON converts an error type to JSON and writes to provided writer.

# Structs

BadRequest - HTTP error for 400 error code.
InternalServerError - HTTP error for 500 error code.
NotFound - HTTP error for 404 error code.

# Interfaces

HTTPError is the universal interface for all HTTPError 's it includes their StatusCode()and a StatusMessage() which contains a short description of the error.