Looks totally fine at first glance. I'm happily using https://github.com/gorilla/sessions to handle cookies right now — OP, is there any reason I should want to switch to your library instead?
Well, gorilla/sessions is meant for sessions.. a more comparable package would be https://github.com/gorilla/securecookie ; And while, both can achieve the same functionality with signed cookies, the primary purpose of my package was to allow you to easily convert multiple cookies into a struct, which was not functionality I've seen from cookie packages I've interacted with.
syntaqx|1 year ago