Versions in this module Expand all Collapse all v0 v0.1.0 Jan 15, 2026 Changes in this version + var ErrCookieExpired = errors.New("expired cookie") + var ErrExists = errors.New("cookie exists") + var ErrNotInitialized = errors.New("not initialized") + func Clear(w http.ResponseWriter, name string, remove bool) error + func Get(r *http.Request, name string) ([]byte, error) + func New(name string, age int64) error + func Save(w http.ResponseWriter, name string, data []byte) error + type Cookie struct + Key []byte + MaxAge int64 + Mode cipher.AEAD + Name string + Nonce []byte