Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Fields = map[FieldType]Field{ Era: Field{ CldrNode: "eras", Widths: map[Width]string{ Wide: "eraNames", Narrow: "eraNarrow", Abbreviated: "eraAbbr", }, Keys: []string{"0", "1"}, }, Quarter: Field{ CldrNode: "quarters", Widths: map[Width]string{ Wide: "format.wide", Narrow: "format.narrow", Abbreviated: "format.abbreviated", WideStandalone: "stand-alone.wide", NarrowStandalone: "stand-alone.narrow", AbbreviatedStandalone: "stand-alone.abbreviated", }, Keys: []string{"1", "2", "3", "4"}, }, Month: Field{ CldrNode: "months", Widths: map[Width]string{ Wide: "format.wide", Narrow: "format.narrow", Abbreviated: "format.abbreviated", WideStandalone: "stand-alone.wide", NarrowStandalone: "stand-alone.narrow", AbbreviatedStandalone: "stand-alone.abbreviated", }, Keys: []string{"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"}, }, Day: Field{ CldrNode: "days", Widths: map[Width]string{ Wide: "format.wide", Narrow: "format.narrow", Abbreviated: "format.abbreviated", Short: "format.short", WideStandalone: "stand-alone.wide", NarrowStandalone: "stand-alone.narrow", AbbreviatedStandalone: "stand-alone.abbreviated", ShortStandalone: "stand-alone.short", }, Keys: []string{"sun", "mon", "tue", "wed", "thu", "fri", "sat"}, }, DayPeriod: Field{ CldrNode: "dayPeriods", Widths: map[Width]string{ Wide: "format.wide", Narrow: "format.narrow", Abbreviated: "format.abbreviated", WideStandalone: "stand-alone.wide", NarrowStandalone: "stand-alone.narrow", AbbreviatedStandalone: "stand-alone.abbreviated", }, Keys: []string{"am", "pm", "morning1", "noon", "afternoon1", "evening1", "midnight", "night1"}, }, }
Fields gets all fields with infos
Functions ¶
Types ¶
type Field ¶
Field describe a date field in cldr https://github.com/unicode-cldr/cldr-dates-full/tree/master/main
Click to show internal directories.
Click to hide internal directories.