Versions in this module Expand all Collapse all v1 v1.1.0 Aug 9, 2026 Changes in this version type Router + func (r *Router) Routes() []struct{ ... } v1.0.0 Jul 27, 2026 Changes in this version + func Error(w http.ResponseWriter, status int, message string) error + func JSON(w http.ResponseWriter, status int, data any) error + func Success(w http.ResponseWriter, status int, data any) error + func URLParam(r *http.Request, key string) string + type Middleware = func(http.Handler) http.Handler + func CORS(origins ...string) Middleware + type Router struct + func New() *Router + func (r *Router) Delete(pattern string, h http.HandlerFunc) + func (r *Router) Get(pattern string, h http.HandlerFunc) + func (r *Router) Group(fn func(sub *Router)) + func (r *Router) Handler() http.Handler + func (r *Router) Head(pattern string, h http.HandlerFunc) + func (r *Router) Options(pattern string, h http.HandlerFunc) + func (r *Router) Patch(pattern string, h http.HandlerFunc) + func (r *Router) Post(pattern string, h http.HandlerFunc) + func (r *Router) Put(pattern string, h http.HandlerFunc) + func (r *Router) Route(prefix string, fn func(sub *Router)) + func (r *Router) Serve(addr string) error + func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) + func (r *Router) Shutdown(ctx context.Context) error + func (r *Router) Use(mw ...Middleware)