Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata interface { Read(keys ...string) (string, error) ReadAll() (map[string]interface{}, error) // Delete only returns an error if len(keys) == 0 or if the item exists and can't be deleted Delete(keys ...string) error DeleteAll() error // Write overrides values without returning an error unless one of keys already exists and is a value (ErrNotKey) Write(value string, keys ...string) error WriteAll(metadata map[string]interface{}) error }
Metadata ignores values that begin with '.' for ReadAll and DeleteAll
Click to show internal directories.
Click to hide internal directories.