Dictionary
Deprecated: Deprecated: Use the configstore package instead.
type Dictionary struct { // contains filtered or unexported fields}Dictionary is a read-only representation of an edge dictionary.
Deprecated: Use the configstore package instead.
Methods
Get
View sourcefunc (d *Dictionary) Get(key string) (string, error)Get returns the value in the dictionary with the given key, if it exists.
Parameters
- key: string
Returns
(string, error)
GetBytes
View sourcefunc (d *Dictionary) GetBytes(key string) ([]byte, error)GetBytes returns the value in the dictionary for the given key, if it exists, as a byte slice.
Parameters
- key: string
Returns
([]byte, error)
Has
View sourcefunc (d *Dictionary) Has(key string) (bool, error)Has returns true if the key exists in the dictionary, without allocating space to read a value.
Parameters
- key: string
Returns
(bool, error)