package
0.0.0-20181003211919-798156fdb816
Repository: https://github.com/digitalbitsorg/go.git
Documentation: pkg.go.dev

# Functions

Inflate sets some basic parameters on the problem, mostly the type for now.
MakeInvalidFieldProblem is a helper function to make a BadRequest with extras.
RegisterError records an error -> P mapping, allowing the app to register specific errors that may occur in other packages to be rendered as a specific P instance.
Render writes a http response to `w`, compliant with the "Problem Details for HTTP APIs" RFC: https://tools.ietf.org/html/draft-ietf-appsawg-http-problem-00 `p` is the problem, which may be either a concrete P struct, an implementor of the `HasProblem` interface, or an error.

# Variables

BadRequest is a well-known problem type.
NotFound is a well-known problem type.
ServerError is a well-known problem type.

# Structs

P is a struct that represents an error response to be rendered to a connected client.

# Interfaces

HasProblem types can be transformed into a problem.