mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 18:37:05 +00:00
README: update benchmarks.
minor performance boost by making RequestParameter Set and Get methods more direct to the underline Memstore's kv Former-commit-id: 4fae45b5bd23804e88aac1f7c66055dd81efc9c9
This commit is contained in:
@@ -146,7 +146,7 @@ func newApp() *iris.Application {
|
||||
})
|
||||
// http://v1.localhost:8080/api/users/42
|
||||
usersAPI.Get("/{userid:int}", func(ctx iris.Context) {
|
||||
ctx.Writef("user with id: %s", ctx.Params().Get("userid"))
|
||||
ctx.Writef("user with id: %d", ctx.Params().GetIntDefault("userid", 0))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user