aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils.go b/utils.go
new file mode 100644
index 0000000..f31e1a8
--- /dev/null
+++ b/utils.go
@@ -0,0 +1,8 @@
+package sessions
+
+import "encoding/gob"
+
+func RegisterGob(v interface{}) {
+ defer recover()
+ gob.Register(v)
+}