package
0.0.0-20241111182353-c1fbc2c9b65f
Repository: https://github.com/triangleside/gotools.git
Documentation: pkg.go.dev
# Functions
Error responds to an HTTP requests with an ErrorResponse.
JSON responds to an HTTP request by encoding the response as JSON.
JSONStream responds to an HTTP request by streaming responses as JSON objects.
MustRegisterErrorResponse allows error types to be registered for the Error responder.
Status responds to an HTTP request with a status but no response body.
WithErrorCallback configures the responder to invoke this callback when there's a write error.
# Structs
StandardErrorResponse is the standard JSON response an API endpoint makes when an unknown error occurs in the endpoint handler.
# Type aliases
Option configures the responders.