From 8b74e3343dc6d535801732674e8c8e8a80ec302f Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Fri, 4 Jan 2019 11:16:40 +0200 Subject: [PATCH] fix https://github.com/kataras/iris/issues/1164 Former-commit-id: 533b277c6a33d44da48df2ad9ca2b5ebb962bc96 --- README.md | 2 +- _examples/routing/dynamic-path/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d3bd4185..8166cc22 100644 --- a/README.md +++ b/README.md @@ -246,7 +246,7 @@ app.Macros().Get("string").RegisterFunc("has", func(validNames []string) func(st } }) -app.Get("/static_validation/{name:string has([kataras,gerasimos,maropoulos]}", func(ctx iris.Context) { +app.Get("/static_validation/{name:string has([kataras,gerasimos,maropoulos])}", func(ctx iris.Context) { name := ctx.Params().Get("name") ctx.Writef(`Hello %s | the name should be "kataras" or "gerasimos" or "maropoulos" otherwise this handler will not be executed`, name) diff --git a/_examples/routing/dynamic-path/main.go b/_examples/routing/dynamic-path/main.go index d2399839..b1ac1510 100644 --- a/_examples/routing/dynamic-path/main.go +++ b/_examples/routing/dynamic-path/main.go @@ -234,7 +234,7 @@ func main() { } }) - app.Get("/static_validation/{name:string has([kataras,gerasimos,maropoulos]}", func(ctx iris.Context) { + app.Get("/static_validation/{name:string has([kataras,gerasimos,maropoulos])}", func(ctx iris.Context) { name := ctx.Params().Get("name") ctx.Writef(`Hello %s | the name should be "kataras" or "gerasimos" or "maropoulos" otherwise this handler will not be executed`, name)