Documentation ¶
Index ¶
- func ExitErrorf(msg string, args ...interface{})
- func JoinPath(elems ...string) string
- func ToArray[T any](mp map[string]T) []T
- type Cache
- 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
- type Option
- type RGB
- type Whitelist
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitErrorf ¶
func ExitErrorf(msg string, args ...interface{})
Types ¶
type Cache ¶
type Cache[K comparable, V io.Closer] struct { // contains filtered or unexported fields }
func (*Cache[K, V]) Delete ¶
func (c *Cache[K, V]) Delete(key K)
Delete deletes the item with provided key from the cache.
Click to show internal directories.
Click to hide internal directories.