mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 02:06:28 +01:00
fix example comment on routing/dynamic-path/main.go#L101
Former-commit-id: affb9b646e83ab9087d4c84aac8c12e11468257b
This commit is contained in:
parent
999fefd649
commit
e38ea65dc7
|
@ -98,7 +98,7 @@ func main() {
|
|||
//
|
||||
// {param:string equal(iris)} , "iris" will be the argument here:
|
||||
// app.Macros().String.RegisterFunc("equal", func(argument string) func(paramValue string) bool {
|
||||
// return func(paramValue string){ return argument == paramValue }
|
||||
// return func(paramValue string) bool { return argument == paramValue }
|
||||
// })
|
||||
|
||||
// you can use the "string" type which is valid for a single path parameter that can be anything.
|
||||
|
|
Loading…
Reference in New Issue
Block a user