package
1.0.4
Repository: https://github.com/hokamsingh/lessgo.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
GetAppInstance returns the singleton App instance.
No description provided by the author
NewHTTPError creates a new HTTPError instance with the given status code and message.
NewRouter creates a new Router with optional configuration.
No description provided by the author
SetAppInstance sets the singleton App instance.
UnWrapCustomHandler converts a http.HandlerFunc to CustomHandler.
WithCaching is an option function that enables caching for the router using Redis.
WithCookieParser enables cookie parsing middleware.
WithCORS enables CORS middleware with specific options.
WithCsrf is an option function that enables CSRF protection for the router.
WithFileUpload enables file upload middleware with the specified upload directory.
WithRateLimiter enables rate limiting middleware with the specified limit and interval.
WithJSONParser enables JSON parsing middleware for request bodies.
WithRateLimiter enables rate limiting middleware with the specified limit and interval.
WithTemplateRendering sets up the router to use the TemplateMiddleware for rendering HTML templates.
WithXss is an option function that enables XSS protection for the router.
WrapCustomHandler converts a CustomHandler to http.HandlerFunc.

# Constants

Content negotiation.
Content negotiation.
Content negotiation.
Define constants for each HTTP method.
Define constants for each HTTP method.
Define constants for each HTTP method.
No description provided by the author
Define constants for each HTTP method.
Define constants for each HTTP method.
POST
Define constants for each HTTP method.
Define constants for each HTTP method.
No description provided by the author

# Structs

HTTPError represents an error with an associated HTTP status code.
Router represents an HTTP router with middleware support and error handling.

# Type aliases

CustomHandler is a function type that takes a custom Context.
HTTPMethod represents an HTTP method as a custom type.
Option is a function that configures a Router.
No description provided by the author