Here is the code about which I speak:
The problem I am experiencing is that when I try to store a map into the
session, I get the following error:
securecookie: the value could not be encoded
The map I'm trying to assign to the session is as follows (with "%#v"):
I've been beating my head against the wall trying to figure out why this
isn't working now, but it was earlier. I even have residual session data in
the same session. The only thing that I've changed recently is this line:
cart := make(map[string]int) // map[UPC]Quantity
It was originally just the following:
var cart map[string]int
Go was complaining about making assignments to a nil map.
I haven't changed the CookieStore key.
Here is the complete handler:
Thanks for all your help!