From 793b0a2f7e8eec8429370ad9a957b7127fe376c4 Mon Sep 17 00:00:00 2001 From: Hank Shen Date: Wed, 6 Dec 2023 12:47:28 +0800 Subject: update --- utils.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 utils.go 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) +} -- cgit v1.2.3