Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
acoshift committed Jan 26, 2018
1 parent b5dc692 commit 33cd066
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func main() {
}

s := session.Get(r.Context(), "sess")
cnt, _ := s.Get("counter").(int)
cnt := s.GetInt("counter")
cnt++
s.Set("counter", cnt)
w.Header().Set("Content-Type", "text/html")
Expand Down Expand Up @@ -96,7 +96,7 @@ func main() {
}

s := m.Get(r, "sess")
cnt, _ := s.Get("counter").(int)
cnt := s.GetInt("counter")
cnt++
s.Set("counter", cnt)
m.Save(w, s)
Expand Down

0 comments on commit 33cd066

Please sign in to comment.