RegisterType registers a custom type for encoding/decoding into any storage provider. Parameters: - i: The custom type to register. Usage: store.RegisterType(MyCustomType{})
(i any)
| 75 | // |
| 76 | // store.RegisterType(MyCustomType{}) |
| 77 | func (*Store) RegisterType(i any) { |
| 78 | gob.Register(i) |
| 79 | } |
| 80 | |
| 81 | // Get will get/create a session. |
| 82 | // |
no outgoing calls