Simple and lightweight HTTP router for Go with some basic features:
- Routing: match any route like "static" (e.g.
/api/users), "dynamic" (e.g./users/:id) and "wildcard" (e.g./public/*) - Middleware: execute any code before and after route handler (e.g. authentication, logging, ...)
- Error handling: create, custom, return error without tears
go get -u github.com/dundunlabs/trahttps://github.com/dundunlabs/tra/tree/main/example
Enjoy your coding π