dictionary

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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