Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add examples of custom types #13

Closed
kisielk opened this issue Aug 1, 2013 · 2 comments
Closed

Add examples of custom types #13

kisielk opened this issue Aug 1, 2013 · 2 comments

Comments

@kisielk
Copy link
Contributor

kisielk commented Aug 1, 2013

Show how to register a custom type with gob in order to store it in a session.

See https://groups.google.com/forum/#!topic/gorilla-web/mqXUzXaeMxw

@elithrar
Copy link
Contributor

elithrar commented Aug 2, 2013

I'll take this up and submit a PR for doc.go over the weekend. Similarly, I'll also modify the examples of session.Save(w, r) to include some error handling, given that a failure to save the cookie isn't something to ignore.

@kisielk
Copy link
Contributor Author

kisielk commented Aug 2, 2013

Awesome, thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants