Fastrouter
FastRouter is a fast, flexible HTTP router written in Go.
Install / Use
/learn @razonyang/FastrouterREADME
FastRouter
FastRouter is a fast, flexible HTTP router written in Go.
FastRouter contains some customizable options, such as TrailingSlashesPolicy, PanicHandler, OptionsHandler,
MethodNotAllowedHandler, NotFoundHandler and so on.
FastRouter also provides some useful features, such as grouping and middleware.
Features
Fast: See Go Web Framework Benchmark
Flexible: FastRouter provides some customizable options for you:
- TrailingSlashesPolicy:
- IgnoreTrailingSlashes: ignore trailing slashes.
- AppendTrailingSlashes: append trailing slashes and redirect if request path is not end with '/'.
- RemoveTrailingSlashes: remove trailing slashes and redirect if request path is end with '/'.
- StrictTrailingSlashes: remove or append trailing slashes according to corresponding pattern.
- PanicHandler
- OptionsHandler
- MethodNotAllowedHandler
- NotFoundHandler
Compatible: FastRouter is an implementation of http.Handler, so it is compatible with third-party packages.
Middleware: Middleware is a chaining tool for chaining http.Handler,
see Middleware.
Grouping: Grouping is an useful feature of FastRouter, it allows to nest and specify middleware of group, see Grouping.
Documentation
See Documentation for details.
Examples
See Examples for details.
Related Skills
node-connect
353.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
353.3kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
111.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
