words

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	English            Language = "english"
	ChineseSimplified           = "chinese_simplified"
	ChineseTraditional          = "chinese_traditional"
	Czech                       = "czech"
	French                      = "french"
	Italian                     = "italian"
	Japanese                    = "japanese"
	Korean                      = "korean"
	Spanish                     = "spanish"
)

Variables

View Source
var ErrUnsupportedLanguage = errors.New("unsupported language")

Functions

func HomebrewList added in v0.4.0

func HomebrewList() []string

HomebrewList returns a hard coded list of words, so that a full functional test can be carried out after a homebrew installation.

func Random added in v0.3.0

func Random(lang string, count int) ([]int, []string, error)

Random returns a slice of random words and their respective integer values from the BIP39 wordlist of that given language.

func ToInts

func ToInts(words []string) ([]int, error)

Types

type Language added in v0.3.0

type Language string

Jump to

Keyboard shortcuts

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