intl

package
v0.1.122 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LocalListCurrent = &LocaleList{
	List: []Locale{},
}
View Source
var LocaleListEmpty = &LocaleList{
	List: []Locale{},
}
View Source
var LocaleListUnspecified = &LocaleList{}

Functions

func EqualLocaleList

func EqualLocaleList(a, b *LocaleList) bool

EqualLocaleList returns true if both LocaleLists have the same locales.

func IsSpecifiedLocaleList

func IsSpecifiedLocaleList(s *LocaleList) bool

func SameLocaleList

func SameLocaleList(a, b *LocaleList) bool

Identity (2 ns)

func SemanticEqualLocaleList

func SemanticEqualLocaleList(a, b *LocaleList) bool

Semantic equality (field-by-field, 20 ns)

Types

type Locale

type Locale = system.Locale

type LocaleList

type LocaleList struct {
	List []Locale
}

func CoalesceLocaleList

func CoalesceLocaleList(ptr, def *LocaleList) *LocaleList

func TakeOrElseLocaleList

func TakeOrElseLocaleList(s, def *LocaleList) *LocaleList

Jump to

Keyboard shortcuts

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