From a3e694b9bd5d0636a3f8aa6953c1b6e5a7d393a8 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Tue, 14 Feb 2017 05:58:17 +0200 Subject: [PATCH] normalize the doc's routers Former-commit-id: 81f7a7dbc228c18d10188c39088d34d4bb512282 --- doc.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc.go b/doc.go index b8eee46a..b499eb21 100644 --- a/doc.go +++ b/doc.go @@ -36,13 +36,13 @@ By adapted a router users are able to use router's features on the route's Path, the rest of the HTTP API and Context's calls remains the same for all routers, as expected. - httprouter, it's a custom version of https://github.comjulienschmidt/httprouter, - which is edited to support iris' subdomains, reverse routing, custom http errors and a lot features, - it should be a bit faster than the original too because of iris' Context. - It uses `/mypath/:firstParameter/path/:secondParameter` and `/mypath/*wildcardParamName` . + which is edited to support iris' subdomains, reverse routing, custom http errors and a lot features, + it should be a bit faster than the original too because of iris' Context. + It uses `/mypath/:firstParameter/path/:secondParameter` and `/mypath/*wildcardParamName` . - gorillamuxa, it's the https://github.com/gorilla/mux which supports subdomains, - custom http errors, reverse routing, pattern matching via regex and the rest of the iris' features. - It uses `/mypath/{firstParameter:any-regex-valid-here}/path/{secondParameter}` and `/mypath/{wildcardParamName:.*}` + custom http errors, reverse routing, pattern matching via regex and the rest of the iris' features. + It uses `/mypath/{firstParameter:any-regex-valid-here}/path/{secondParameter}` and `/mypath/{wildcardParamName:.*}` Example code: