package
0.0.0-20240513095113-b889055ad37b
Repository: https://github.com/go-flexi/ecom-backend.git
Documentation: pkg.go.dev
# Functions
NewContext returns a new Context that carries values.
JSONResponse sends v as a JSON response to the client.
JSONResponse sends v as a JSON response to the client.
NewTrustedError returns a new TrustedError.
Param returns the URL parameter from the request r by key.
SetStatusCode sets the status code in the context.
SetValues sets the values in the context.
ToTrustedError returns the underlying error of a TrustedError returns true if the error is a TrustedError.
# Structs
TrustedError is used to represent an error that is trusted and should be returned to the client.
Values represents the values that are stored in the context.