Documentation
¶
Index ¶
- Variables
- type Storage
- func (storage *Storage[T]) Delete(key string) error
- func (storage *Storage[T]) Edit(key string, f func(T) (T, error)) (T, error)
- func (storage *Storage[T]) Get(key string) (T, error)
- func (storage *Storage[T]) Put(key string, value T) error
- func (storage *Storage[T]) Range(f func(string, T) error) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotExist = errors.New("entry does not exist") ErrInternal = errors.New("internal error") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.