Documentation ¶ Index ¶ func Deserialize(byt []byte, ptr interface{}) (err error) func Get(key string, ptrValue interface{}) (error, bool) func Init() func Serialize(value interface{}) ([]byte, error) func Set(key string, value interface{}, expires time.Duration) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Deserialize ¶ func Deserialize(byt []byte, ptr interface{}) (err error) Deserialize transforms bytes produced by Serialize back into a Go object, storing it into "ptr", which must be a pointer to the value type. func Get ¶ func Get(key string, ptrValue interface{}) (error, bool) func Init ¶ func Init() func Serialize ¶ func Serialize(value interface{}) ([]byte, error) Serialize transforms the given value into bytes following these rules: - If value is a byte array, it is returned as-is. - If value is an int or uint type, it is returned as the ASCII representation - Else, encoding/gob is used to serialize func Set ¶ func Set(key string, value interface{}, expires time.Duration) error Types ¶ This section is empty. Source Files ¶ View all Source files init.go Click to show internal directories. Click to hide internal directories.