Skip to content

v0.4.0

Choose a tag to compare

@dghubble dghubble released this 07 Jan 22:19
· 5 commits to main since this release
v0.4.0
  • Allow Session to store values with specified type (V) (i.e. generics) (#21)
    • Session state is now a map[string]V instead of a map[string]any
    • Update Set, Get, and GetOk methods to use generic type V
    • Change Session to Session[V any] to specify the type of value stored in the Session
    • See updated usage docs for examples
  • Change Store to Store[V any] to specify the type of value stored in sessions
  • Change NewCookieStore to NewCookieStore[V any] to specify the type of value stored in sessions