A simple and fast HTTP router (request multiplexer) for Go applications.
Bxog is an HTTP router and request multiplexer for Go that handles URL routing, parameter extraction, and URL generation. It provides a faster and more feature-rich alternative to Go's standard library `http.ServeMux`, with support for named parameters, method restrictions, and static file serving.
Go developers building web applications or APIs who need a lightweight, high-performance router with basic parameter handling and URL generation capabilities.
Developers choose Bxog for its simplicity, speed, and minimal overhead compared to larger frameworks, offering essential routing features without complexity while maintaining competitive performance benchmarks.
Bxog is a simple and fast HTTP router for Go (HTTP request multiplexer).
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Benchmarks show 163 ns/op, outperforming popular routers like HttpRouter and Gorilla in speed tests, making it ideal for high-throughput applications.
Uses colon syntax for named parameters, with easy extraction via the Params method, as demonstrated in the THandler example for dynamic URL segments.
The Create method allows generating URLs from route patterns with parameter substitution, useful for dynamic link building, shown in the PHandler example.
Includes both Shutdown and Stop methods for controlled server termination, providing flexibility in handling server stops.
No built-in middleware chain or easy integration for common tasks, unlike routers like Gorilla or Gin, which may require manual handling for auth or logging.
Static file serving requires modifying constants like FILE_PREF and FILE_PATH in a separate config.go file, making runtime adjustments cumbersome.
README provides basic examples but lacks comprehensive guides for error handling, sub-routing, or advanced use cases, potentially slowing development.