1
0
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:
Gerasimos (Makis) Maropoulos
2020-07-18 14:35:27 +03:00
parent fb8e677c08
commit a1991a0830
9 changed files with 42 additions and 22 deletions

View File

@@ -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))
})
}
}