Github
Issues
About
Subscribe
violetear
Go HTTP router
Star
How it works
Usage
Basic example
Middleware
Alice - Middleware Chaining
Context & Named parameters
r.Context().Value(violetear.ParamsKey)
Versioning
application/vnd.acme.v2
RequestID
router.RequestID=“rid”
NotFoundHandler
404 Not Found
NotAllowedHandler
405 Method Not Allowed
PanicHandler
50X
Structured Logging
{“format”: “json”}
Websocket Hijack
Hijack, Flusher
route name
.Name(“route”) & GetError()
prometheus
/metrics
The journey to achieve 0 allocations
0 B/op 0 allocs/op