Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliasJSON ¶
type AliasJSON struct {
// contains filtered or unexported fields
}
func (*AliasJSON) GetAliases ¶
func (*AliasJSON) SetAlias ¶
func (doc *AliasJSON) SetAlias(key string, alias AliasValue)
type AliasMap ¶
type AliasMap map[string]AliasValue
type AliasValue ¶
type AliasValue struct { // Path the alias points to Path string // Description of the alias Desc string }
AliasValue is the content of an alias
type Aliaser ¶
type Aliaser interface { GetAlias(key string) (AliasValue, error) SetAlias(key string, value AliasValue) GetAliases() []string // Flush saves actual aliases to file Flush() error // Load all aliases from file Load() error }
Aliaser defines interface for getting, setting and persisting aliases
Click to show internal directories.
Click to hide internal directories.