Documentation ¶ Index ¶ func HasDictionary(lang string) bool type Dict func Default() *Dict func ForLang(lang string) (*Dict, error) func (d Dict) FindNumber(str string) (string, bool) func (d Dict) FindQuantityBetween(str string) (string, bool) func (d Dict) FindUnit(str string) (string, bool) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func HasDictionary ¶ func HasDictionary(lang string) bool Types ¶ type Dict ¶ type Dict struct { Units map[string][]string `yaml:"units"` QuantityBetween []string `yaml:"quantityBetween"` Numbers map[string]float64 `yaml:"numbers"` } func Default ¶ func Default() *Dict func ForLang ¶ func ForLang(lang string) (*Dict, error) func (Dict) FindNumber ¶ func (d Dict) FindNumber(str string) (string, bool) func (Dict) FindQuantityBetween ¶ func (d Dict) FindQuantityBetween(str string) (string, bool) func (Dict) FindUnit ¶ func (d Dict) FindUnit(str string) (string, bool) Source Files ¶ View all Source files dictionary.go Click to show internal directories. Click to hide internal directories.