Versions in this module Expand all Collapse all v1 v1.8.3 Jul 28, 2019 v1.8.2 Jul 24, 2019 v1.8.1 Jul 23, 2019 v1.8.0 Jul 13, 2019 v1.7.3 Jul 9, 2019 v1.7.2 Jul 4, 2019 v1.7.1 Jul 2, 2019 v0 v0.0.0 Jul 18, 2019 Changes in this version + const Version + func Key(e Elem, exclude ...string) string + type CLDR struct + func (cldr *CLDR) BCP47() *LDMLBCP47 + func (cldr *CLDR) LDML(loc string) (*LDML, error) + func (cldr *CLDR) Locales() []string + func (cldr *CLDR) RawLDML(loc string) *LDML + func (cldr *CLDR) SetDraftLevel(lev Draft, preferDraft bool) + func (cldr *CLDR) Supplemental() *SupplementalData + type Calendar struct + Am []*Common + CyclicNameSets ... + DateFormats ... + DateTimeFormats ... + DayAbbr ... + DayNames ... + DayPeriods ... + Days ... + Eras ... + Fields []... + MonthAbbr ... + MonthNames ... + MonthPatterns ... + Months ... + Pm []*Common + Quarters ... + TimeFormats ... + Week ... + type Collation struct + Base *Common + Cr []*Common + Import []... + Optimize *Common + Settings ... + SuppressContractions *Common + Visibility string + func (c Collation) Process(p RuleProcessor) (err error) + type Common struct + Alt string + Draft string + Reference string + Type string + ValidSubLocales string + XMLName xml.Name + func (e *Common) Data() string + func (e *Common) Default() string + func (e *Common) Element() string + func (e *Common) GetCommon() *Common + type Decoder struct + func (d *Decoder) Decode(l Loader) (cldr *CLDR, err error) + func (d *Decoder) DecodePath(path string) (cldr *CLDR, err error) + func (d *Decoder) DecodeZip(r io.Reader) (cldr *CLDR, err error) + func (d *Decoder) SetDirFilter(dir ...string) + func (d *Decoder) SetSectionFilter(filter ...string) + type Draft int + const Approved + const Contributed + const Provisional + const Unconfirmed + func ParseDraft(level string) (Draft, error) + func (d Draft) String() string + type Elem interface + GetCommon func() *Common + func Get(e Elem, path string) (res Elem, err error) + type LDML struct + Annotations ... + CharacterLabels ... + Characters ... + Collations ... + ContextTransforms ... + Dates ... + Delimiters ... + Identity ... + Layout ... + ListPatterns ... + LocaleDisplayNames *LocaleDisplayNames + Measurement ... + Metadata ... + Numbers *Numbers + Posix ... + Rbnf ... + References ... + Segmentations ... + Units ... + Version string + type LDMLBCP47 struct + Attribute []... + Generation ... + Keyword []... + Version ... + type Loader interface + Len func() int + Path func(i int) string + Reader func(i int) (io.ReadCloser, error) + type LocaleDisplayNames struct + CodePatterns ... + Keys ... + Languages ... + LocaleDisplayPattern ... + MeasurementSystemNames ... + Scripts ... + Subdivisions ... + Territories ... + TransformNames ... + Types ... + Variants ... + type Numbers struct + Currencies ... + CurrencyFormats []... + DecimalFormats []... + DefaultNumberingSystem []*Common + MinimalPairs []... + MinimumGroupingDigits []*Common + MiscPatterns []... + OtherNumberingSystems []... + PercentFormats []... + ScientificFormats []... + Symbols []... + type RuleProcessor interface + Index func(id string) + Insert func(level int, str, context, extend string) error + Reset func(anchor string, before int) error + type Slice struct + func MakeSlice(slicePtr interface{}) Slice + func (s *Slice) Value() reflect.Value + func (s Slice) Filter(fn func(e Elem) bool) + func (s Slice) Group(fn func(e Elem) string) []Slice + func (s Slice) SelectAnyOf(attr string, values ...string) + func (s Slice) SelectDraft(d Draft) + func (s Slice) SelectOnePerGroup(a string, v []string) + type SupplementalData struct + Bcp47KeywordMappings ... + CalendarData ... + CalendarPreferenceData ... + Characters ... + CodeMappings ... + CoverageLevels ... + CurrencyData ... + DayPeriodRuleSet []... + Gender ... + Generation ... + IdValidity ... + LanguageData ... + LanguageMatching ... + LikelySubtags ... + MeasurementData ... + MetaZones ... + Metadata ... + MetazoneInfo ... + NumberingSystems ... + ParentLocales ... + Plurals []... + PostalCodeData ... + PrimaryZones ... + References ... + RgScope ... + SubdivisionContainment ... + TelephoneCodeData ... + TerritoryContainment ... + TerritoryInfo ... + TimeData ... + TimezoneData ... + Transforms ... + UnitPreferenceData ... + Version ... + WeekData ... + WindowsZones ... + type TimeZoneNames struct + AbbreviationFallback []*Common + FallbackFormat []*Common + FallbackRegionFormat []*Common + GmtFormat []*Common + GmtZeroFormat []*Common + HourFormat []*Common + HoursFormat []*Common + Metazone []... + PreferenceOrdering []*Common + RegionFormat []*Common + SingleCountries []... + Zone []...