package
3.2.0
Repository: https://github.com/space307/go-utils.git
Documentation: pkg.go.dev

# Functions

AddMetrics is functions used to adds metrics and tracing middleware to all Handlers.
EncodeJSONResponse writes json response into http.ResponseWriter.
NewErrorWithCode creates a new object with a message and code.
NewErrorWithCodeResponse creates a new object with a message, code and response.
NewServer creates a new server object for the given config.
RequestVars returns request's path variables.

# Structs

Config used to pass settings and handlers to the server.
ErrorWithCode contains a message and code, which will be used as a http response code.
PathInfo represents information about path, method, and request handlers to serve this path.
Server is a REST api server.