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)