Versions in this module Expand all Collapse all v0 v0.0.1 Mar 10, 2023 Changes in this version + func CookieToString(cookies []*http.Cookie) string + func EmptyOr(value, defaultValue []T) []T + func ExpandPath(path string) (string, error) + func ParseCookie(cookies string) []*http.Cookie + func ReadYaml(path string) (t T, err error) + func ZeroOr(value, defaultValue T) T + type LRUCache struct + MaxEntries int + OnEvicted func(key K, value V) + func NewLRUCache(maxEntries int) *LRUCache[K, V] + func (c *LRUCache[K, V]) Add(key K, value V) + func (c *LRUCache[K, V]) Clear() + func (c *LRUCache[K, V]) Get(key K) (value V, ok bool) + func (c *LRUCache[K, V]) Len() int + func (c *LRUCache[K, V]) Remove(key K) + func (c *LRUCache[K, V]) RemoveOldest() + type Pair struct + Key K + Value V