This is a simple, semi-opiniated package for handling signed cookies in Go apps.
It is essentially a higher-level convenience API built on top of github.com/gorilla/securecookie
.
To figure out how to use this package, please peruse the source (well under 200 lines) and read the comments.
Secrets are expected to be 32 or 64 bytes and in base64 format.
You can generate a secret with:
openssl rand -base64 32 # or 64