diff options
author | Hank Shen <swh@admpub.com> | 2023-12-06 07:47:28 +0300 |
---|---|---|
committer | Hank Shen <swh@admpub.com> | 2023-12-06 07:47:28 +0300 |
commit | 793b0a2f7e8eec8429370ad9a957b7127fe376c4 (patch) | |
tree | 7ba958eba2d75f23f164bc22d388272c966210d2 /utils.go | |
parent | 2e13a9f7101b3b83692b17951d6748e7c827c51c (diff) |
Diffstat (limited to 'utils.go')
-rw-r--r-- | utils.go | 8 |
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) +} |