package
1.2.0
Repository: https://github.com/sweet-go/stdlib.git
Documentation: pkg.go.dev

# Functions

GetRequestIDFromCtx is a helper function to get request ID from context.
RequestID is a middleware to generate request ID and set it to context if in the request header already have request ID in key `X-Request-ID` and `overrideHeader` is true, then the request ID will be override with new generated ID otherwise, both on context and response header will use supplied request header `X-Request-ID`.

# Constants

ReqIDCtxKey is the key for request ID in context.

# Type aliases

ReqIDCtxKeyType is the type for context key for request ID.