# README
π gorouter

Go Server/API micro framework, HTTP request router, multiplexer, mux.
π ABOUT
Contributors:
Want to contribute ? Feel free to send pull requests!
Have problems, bugs, feature ideas? We are using the github issue tracker to manage them.
π Documentation
For documentation (including examples), visit rafallorenz.com/gorouter
For GoDoc reference, visit pkg.go.dev
π Benchmark
β 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.
Features
- Routing System
- Middleware System
- Authentication
- Fast HTTP
- Serving Files
- Multidomain
- HTTP2 Support
- Low memory usage
- Documentation
π HOW TO USE
π₯οΈ API example setup
- Go Server/API boilerplate using best practices DDD CQRS ES.
π License
This package is released under the MIT license. See the complete license in the package:
# Packages
Package context provide router context
*/.
Package middleware provide router middleware
*/.
Package mux provide route tree
*/.
Package path provide path utils
*/.
# Functions
New creates new net/http Router instance, returns pointer.
NewFastHTTPRouter creates new Router instance, returns pointer.
# Interfaces
FastHTTPRouter is a fasthttp micro framework, HTTP request router, multiplexer, mux.
Router is a micro framework, HTTP request router, multiplexer, mux.
# Type aliases
FastHTTPMiddlewareFunc is a fasthttp middleware function type.
MiddlewareFunc is a http middleware function type.