package
0.0.0-20250211213019-790c6c5803cd
Repository: https://github.com/poy/go-router.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
AddCorsHeaders adds the CORS headers to the response.
AddLimitRequestBodyModifier is a modifier that limits the request body size.
AddUserInfoModifier adds a user info modifier to the router.
GetUserInfo returns the user info from the request context.
PathVars returns the path variables from the request context.
ReadRequest reads a request from the body and unmarshals it into the given Type.
WithUserID returns a new context with the user info set.
WriteError writes an error to the response as JSON.
WriteResponse writes a response to the ResponseWriter.
# Type aliases
Router is an HTTP router.