package
0.2.0
Repository: https://github.com/contiamo/go-base.git
Documentation: pkg.go.dev

# Functions

ChiRouteName replace route parameters from the Chi route mux with "*".
MethodAndPathCleanID replace string values that look like ids (uuids and int) with "*".
PathWithCleanID replace string values that look like ids (uuids and int) with "*".
WithCORS configures CORS on the webserver.
WithCORSWideOpen allows requests from all origins with all methods and all headers/cookies/credentials allowed.
WithLogging configures a logrus middleware for that server.
WithMetrics configures metrics collection.
WithRecovery configures panic recovery for that server.
WithTracing configures tracing for that server; if configuration fails, WithTracing will panic.