Versions in this module Expand all Collapse all v0 v0.0.2 Mar 30, 2023 v0.0.1 Mar 30, 2023 Changes in this version + func RandomID() string + type Control struct + SessionDataMap map[string]SessionData + func New(cookieName string) *Control + func (c *Control) Create() (string, *SessionData) + func (c *Control) Delete(w http.ResponseWriter, id string) + func (c *Control) Get(r *http.Request) (string, *SessionData, bool) + func (c *Control) RemoveExpired() + func (c *Control) Save(w http.ResponseWriter, id string, sessionData *SessionData) + type SessionData struct + Data any + ExpireAt time.Time