summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHank Shen <swh@admpub.com>2023-12-06 07:47:28 +0300
committerHank Shen <swh@admpub.com>2023-12-06 07:47:28 +0300
commit793b0a2f7e8eec8429370ad9a957b7127fe376c4 (patch)
tree7ba958eba2d75f23f164bc22d388272c966210d2
parent2e13a9f7101b3b83692b17951d6748e7c827c51c (diff)
-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)
+}