top | item 40851630

syntaqx/cookie: Cookies, but with structs, for happiness

16 points| syntaqx | 1 year ago |github.com

2 comments

order
[+] peter_l_downs|1 year ago|reply
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?
[+] syntaqx|1 year ago|reply
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.