localization

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CyrillicToLatin added in v1.6.0

func CyrillicToLatin(str string) string

func FormatDate added in v1.6.0

func FormatDate(in *string)

Expects a pointer to a date in the format DDMMYYYY. Modifies, in place, date to format DD.MM.YYYY.

func FormatDateYMD added in v1.6.0

func FormatDateYMD(in *string)

Expects a pointer to a date in the format YYYYMMDD. Modifies, in place, date to format DD.MM.YYYY.

func FormatYesNo

func FormatYesNo(a bool, script Script) string

func JoinWithComma added in v1.6.0

func JoinWithComma(strs ...string) string

Joins list of strings into a single string separating them with a comma and a space. Empty strings are skipped.

Types

type Script

type Script uint
const (
	Latin Script = iota
	Cyrillic
)

Jump to

Keyboard shortcuts

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