shortcuts

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const FILE_NAME = "shortcuts.yaml"
View Source
const UNINITIALIZED = "UNINITIALIZED"

Variables

This section is empty.

Functions

func Add

func Add(key string, value string)

func Delete

func Delete(key string)

func GetAll

func GetAll() map[string]string

func Resolve

func Resolve(token string) string

Gets an ID for a given shortcut If the shortcut isn't found just return the token

func ReverseResolve

func ReverseResolve(id string) string

Get the shortcut for a given ID

Types

type Shortcuts

type Shortcuts struct {
	Map map[string]string
}

func (*Shortcuts) Load

func (c *Shortcuts) Load()

func (*Shortcuts) Save

func (c *Shortcuts) Save()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL