package
0.0.0-20240501210841-e400c07905e1
Repository: https://github.com/hpetrov29/restapi.git
Documentation: pkg.go.dev

# Functions

Decode reads the body of an HTTP request looking for a JSON document.
GetTraceID returns the trace id from the context.
NewApp creates an App instance using the chi router.
Param returns the web call parameters from the request.
Respond converts a Go value to JSON and sends it to the client.
SetStatusCode sets the status code back into the context.

# Structs

App is the entrypoint into the application and what configures our context object for each of our http handlers.
Values represents state for each request.

# Type aliases

Handler is a type definition that handles a http request within the mini framework.
Middleware is a type definition that expects and returns a Handler.