We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32aca7a commit 6683d85Copy full SHA for 6683d85
examples/session/session.go
@@ -9,7 +9,7 @@ func Hello(env mango.Env) (mango.Status, mango.Headers, mango.Body) {
9
env.Session()["new_session_attribute"] = "Never Gonna Give You Up"
10
11
// To remove a session attribute delete it from the map
12
- env.Session()["old_session_attribute"] = nil, false
+ delete(env.Session(), "old_session_attribute")
13
14
return 200, mango.Headers{}, mango.Body("Hello World!")
15
}
0 commit comments