gg_num2word_languages

package
v0.2.37 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

View Source
var Languages = LanguageList{}

Functions

func IntegerToEnUs

func IntegerToEnUs(input int) string

IntegerToEnUs converts an integer to American English words

Example
fmt.Println(IntegerToEnUs(42))
Output:

forty-two

func IntegerToEsEs

func IntegerToEsEs(input int) string

IntegerToEsEs converts an integer to spanish words

Example
fmt.Println(IntegerToEsEs(42))
Output:

cuarenta y dos

func IntegerToFrBe

func IntegerToFrBe(input int) string

IntegerToFrBe converts an integer to French (belgium) words

Example
fmt.Println(IntegerToFrBe(42))
fmt.Println(IntegerToFrBe(92))
Output:

quarante-deux
nonante-deux

func IntegerToFrFr

func IntegerToFrFr(input int) string

IntegerToFrFr converts an integer to French words

Example
fmt.Println(IntegerToFrFr(42))
Output:

quarante-deux

func IntegerToIDID

func IntegerToIDID(input int) string

IntegerToIDID converts an integer to Indonesian words

Example
fmt.Println(IntegerToIDID(42))
Output:

empat puluh dua

func IntegerToIrIr

func IntegerToIrIr(input int) string

IntegerToIrIr converts an integer to Iranian words

Example
fmt.Println(IntegerToIrIr(42))
Output:

چهل و دو

func IntegerToItIt

func IntegerToItIt(input int) string

IntegerToItIt converts an integer to Italian words

Example
out := IntegerToItIt(42)
fmt.Println(out)
Output:

func IntegerToJaJp

func IntegerToJaJp(input int) string

IntegerToJaJp converts an integer to Japanese words

Example
fmt.Println(IntegerToJaJp(42))
Output:

四十二

func IntegerToNlNl

func IntegerToNlNl(input int) string

IntegerToNlNl converts an integer to Dutch words

Example
fmt.Println(IntegerToNlNl(42))
Output:

tweeenveertig

func IntegerToPlPl

func IntegerToPlPl(input int) string

func IntegerToPtPt

func IntegerToPtPt(input int) string

func IntegerToRoman

func IntegerToRoman(input int) string

IntegerToRoman converts an integer to Roman words

Example
fmt.Println(IntegerToRoman(42))
Output:

XLII

func IntegerToRomanUnicode

func IntegerToRomanUnicode(input int) string

func IntegerToRuRu

func IntegerToRuRu(input int) string

IntegerToRuRu converts an integer to Russian words

func IntegerToSvSe

func IntegerToSvSe(input int) string

IntegerToSvSe converts an integer to Swedish words

Example
fmt.Println(IntegerToSvSe(42))
Output:

fyrtio-två

func IntegerToTrTr

func IntegerToTrTr(input int) string

IntegerToTrTr converts an integer to Turkish words

Example
fmt.Println(IntegerToTrTr(42))
Output:

kırk iki

Types

type Language

type Language struct {
	Name           string
	Aliases        []string
	Flag           string
	IntegerToWords func(int) string
}

func (Language) HelpText

func (lang Language) HelpText() string

type LanguageList

type LanguageList map[string]Language

func (LanguageList) Default

func (langs LanguageList) Default() Language

func (LanguageList) Lookup

func (langs LanguageList) Lookup(key string) *Language

Jump to

Keyboard shortcuts

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