The router determines how to handle that request. GoRouter uses a routing tree. Once one branch of the tree matches, only routes inside that branch are considered, not any routes after that branch. When instantiating router, the root node of tree is created.
GoRouter alternatives and similar packages
Based on the "Web Frameworks" category
Do you think we are missing an alternative of GoRouter or a related project?
Go Server/API micro framework, HTTP request router, multiplexer, mux.
Want to contribute ? Feel free to send pull requests!
Have problems, bugs, feature ideas? We are using the github issue tracker to manage them.
For documentation (including examples), visit rafallorenz.com/gorouter
For GoDoc reference, visit pkg.go.dev
➜ gorouter git:(master) ✗ go test -bench=. -cpu=4 -benchmem test goos: darwin goarch: amd64 pkg: github.com/vardius/gorouter/v4 BenchmarkNetHTTP-4 65005786 17.9 ns/op 0 B/op 0 allocs/op BenchmarkFastHTTP-4 69810878 16.5 ns/op 0 B/op 0 allocs/op PASS ok github.com/vardius/gorouter/v4 3.808s
👉 Click here to see all benchmark results.
- Routing System
- Middleware System
- Fast HTTP
- Serving Files
- HTTP2 Support
- Low memory usage
🚏 HOW TO USE
🖥️ API example setup
- Go Server/API boilerplate using best practices DDD CQRS ES.
This package is released under the MIT license. See the complete license in the package:
*Note that all licence references and agreements mentioned in the GoRouter README section above are relevant to that project's source code only.