Documentation
¶
Overview ¶
example: key := "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" // 64 hex chars ec := cookier.Encode(key, cookier.Cookie{time.Now().Unix() + 3600, "{\token\":\"123\"}"}) dc, _ := cookier.Decode(key, ec) // ignoring err and expiration err json.Unmarshal(dc.Value, &s) // ignoring err
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.