1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-19 02:47:04 +00:00

SetImmutable for sessions and context's values. https://github.com/iris-contrib/community-board/issues/5

New package "memstore" created, read it to see how I made it.


Former-commit-id: 9edc344b938786b2ef68defec03c44259a2d539c
This commit is contained in:
kataras
2017-06-08 03:39:15 +03:00
parent 5e00c50c37
commit 14e7751d21
14 changed files with 455 additions and 268 deletions

View File

@@ -22,7 +22,7 @@ func main() {
})
app.Get("/u/{firstname:alphabetical}", func(ctx context.Context) {
ctx.Writef("Hello %s", ctx.Values().GetString("firstname"))
ctx.Writef("Hello %s", ctx.Params().Get("firstname"))
})
app.Run(iris.Addr(":8080"))