alexedwards / scs

HTTP Session Management for Go
MIT License
2.02k stars 165 forks source link

Automatic gob type registration #174

Closed obanoff closed 11 months ago

obanoff commented 11 months ago

Added automatic gob type registration possibility, that is enabled by default, but can be disabled by developer. Upon Put a new value into session, it checks whether the type of value is registered and take appropriate action: panics, if auto registration is false, otherwise registers the type.