You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Updated to use Go Modules
- Updated to use github.com/go-playground/pkg for HTTP abstractions.
pure now also relies on the
github.com/go-playground/pkg/net/http.DefaultFormDecoder; it is
configurable.
Pure is a fast radix-tree based HTTP router that sticks to the native implementations of Go's "net/http" package;
12
12
in essence, keeping the handler implementations 'pure' by using Go 1.7's "context" package.
13
13
14
+
This makes heavy usage of `github.com/go-playground/pkg` for HTTP abstractions.
15
+
14
16
Why Another HTTP Router?
15
17
------------------------
16
18
I initially created [lars](https://github.com/go-playground/lars), which I still maintain, that wraps the native implementation, think of this package as a Go pure implementation of [lars](https://github.com/go-playground/lars)
@@ -156,40 +158,42 @@ Other middleware will be listed under the _examples/middleware/... folder for a
156
158
157
159
Benchmarks
158
160
-----------
159
-
Run on i5-7600 16 GB DDR4-2400 using Go version go1.8.1 linux/amd64
161
+
Run on i5-7600 16 GB DDR4-2400 using Go version go1.12.5 darwin/amd64
160
162
161
-
NOTICE: pure uses a custom version of [httprouter](https://github.com/julienschmidt/httprouter)'s radix tree, benchmarks can be found [here](https://github.com/joeybloggs/go-http-routing-benchmark/tree/pure-and-lars) the slowdown is with the use of the `context` package, as you can see when no SEO params are defined, and therefore no need to store anything in the context, it is faster than even lars.
163
+
NOTICE: pure uses a custom version of [httprouter](https://github.com/julienschmidt/httprouter)'s radix tree, benchmarks can be found [here](https://github.com/deankarn/go-http-routing-benchmark/tree/pure-and-lars) the slowdown is with the use of the `context` package, as you can see when no SEO params are defined, and therefore no need to store anything in the context, it is faster than even lars.
0 commit comments