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
Copy file name to clipboardExpand all lines: README.md
+13-93Lines changed: 13 additions & 93 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,18 @@ _Last updated on October 17, 2018._ Click [here](_benchmarks/README.md) to read
63
63
-__small api:__ with only 3 main methods for HTTP there's not much to learn
64
64
-__compatibility:__ built to be 100% compatible with the `net/http` standard package
65
65
66
+
## Technical Features
67
+
68
+
-[x] Closest Wildcard Resolution and Root wildcard (CWR)[*](_examples/3_root_wildcard_and_custom-404/main.go)
69
+
-[x] Parameterized Dynamic Path (named parameters with `:name` and wildcards with `*name`, can play all together for the same path prefix|suffix)[*](_examples/2_parameterized/main.go)
70
+
-[x] Standard handlers chain (`Pre(handlers).For(mainHandler)` for individual routes and `Mux#Use` for router)[*](_examples/6_middleware/main.go)
71
+
-[x] Register handlers by method(s) (`muxie.Methods()`)[*](_examples/7_by_methods/main.go)
72
+
-[x] Register handlers by filters (`Mux#HandleRequest` and `Mux#AddRequestHandler` for `muxie.Matcher` and `muxie.RequestHandler`)
73
+
-[x] Handle subdomains with ease (`muxie.Host` Matcher)[*](_examples/9_subdomains_and_matchers)
74
+
-[x] Request Processors (`muxie.Bind` and `muxie.Dispatch`)[*](_examples/8_bind_req_send_resp)
75
+
76
+
Interested? Want to learn more about this library? Check out our tiny [examples](_examples) and the simple [godocs page](https://godoc.org/github.com/kataras/muxie).
77
+
66
78
## Installation
67
79
68
80
The only requirement is the [Go Programming Language](https://golang.org/dl/)
@@ -71,99 +83,6 @@ The only requirement is the [Go Programming Language](https://golang.org/dl/)
71
83
$ go get -u github.com/kataras/muxie
72
84
```
73
85
74
-
## Example
75
-
76
-
```go
77
-
package main
78
-
79
-
import (
80
-
"fmt"
81
-
"net/http"
82
-
83
-
"github.com/rs/cors"
84
-
85
-
"github.com/kataras/muxie"
86
-
)
87
-
88
-
funcmain() {
89
-
mux:= muxie.NewMux()
90
-
mux.PathCorrection = true
91
-
92
-
// _examples/6_middleware
93
-
mux.Use(cors.Default().Handler)
94
-
95
-
mux.HandleFunc("/", indexHandler)
96
-
// Root wildcards, can be used for site-level custom not founds(404).
0 commit comments