Versions in this module Expand all Collapse all v0 v0.0.1 Jul 22, 2023 Changes in this version + func ExitErrorf(msg string, args ...interface{}) + func JoinPath(elems ...string) string + func ToArray(mp map[string]T) []T + type Cache struct + func NewCache(opts ...Option) *Cache[K, V] + func (c *Cache[K, V]) Delete(key K) + func (c *Cache[K, V]) Flush() error + func (c *Cache[K, V]) Get(key K) (zero V, _ bool) + func (c *Cache[K, V]) GetOrSet(key K, factory func() (V, error)) (zero V, set bool, err error) + func (c *Cache[K, V]) Keys() []K + func (c *Cache[K, V]) Len() int + func (c *Cache[K, V]) Set(key K, val V) + type Hex string + type Option func(*options) + func WithCapacity(cap int) Option + type RGB struct + Blue uint8 + Green uint8 + Red uint8 + func Hex2RGB(hex Hex) (RGB, error) + type Whitelist struct + func NewWhitelist(allowedValues map[interface{}]bool) *Whitelist + func (w *Whitelist) Check(value interface{}) bool