keys

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultKeyListName = "Default"
)

Variables

This section is empty.

Functions

func MiscKeys

func MiscKeys() []string

Types

type KeyList

type KeyList interface {
	Name() string
	Desc() string
	Keys() []string
	Count() int
}

func KeyListForFile

func KeyListForFile(path string) (KeyList, error)

func KeyListForName

func KeyListForName(name string) (KeyList, error)

func KnownKeyLists

func KnownKeyLists() []KeyList

func NewKeyList

func NewKeyList(name string, desc string, keys []string) KeyList

func SamplingKeyList

func SamplingKeyList(origList KeyList, sampleSize int) (KeyList, error)

type KeyResult

type KeyResult struct {
	List  KeyList
	Index int
	Key   string
	Error error
}

func (*KeyResult) Pretty

func (f *KeyResult) Pretty() string

func (*KeyResult) Success

func (f *KeyResult) Success() bool

type MemoryKeyList

type MemoryKeyList struct {
	// contains filtered or unexported fields
}

func (*MemoryKeyList) Count

func (s *MemoryKeyList) Count() int

func (*MemoryKeyList) Desc

func (s *MemoryKeyList) Desc() string

func (*MemoryKeyList) Keys

func (s *MemoryKeyList) Keys() []string

func (*MemoryKeyList) Name

func (s *MemoryKeyList) Name() string

Jump to

Keyboard shortcuts

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