zytdata

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmPmInfo

type AmPmInfo struct {
	// Ante meridiem.
	AM string

	// Post meridiem.
	PM string

	// Additional tokens recognized for ante meridiem.
	ExtraAM []string

	// Additional tokens recognized for post meridiem.
	ExtraPM []string
}

func (AmPmInfo) Clone

func (api AmPmInfo) Clone() AmPmInfo

Clone returns a deep copy which can be modified without affecting the original.

type DayInfo

type DayInfo struct {
	// Long-named day of the week.
	Name string

	// Abbreviated day of the week.
	Abbr string

	// Additional day names recognized during parsing.
	ExtraNames []string

	// Additional abbreviated day names recognized during parsing.
	ExtraAbbr []string
}

func (DayInfo) Clone

func (di DayInfo) Clone() DayInfo

Clone returns a deep copy which can be modified without affecting the original.

type LocaleData

type LocaleData struct {
	Tag    language.Tag
	Months [12]MonthInfo
	Days   [7]DayInfo
	AmPm   AmPmInfo
}

https://sourceware.org/git?p=glibc.git;a=blob;f=locale/LocaleData.h;hb=HEAD

func (LocaleData) Clone

func (d LocaleData) Clone() LocaleData

Clone returns a deep copy which can be modified without affecting the original.

type MonthInfo

type MonthInfo struct {
	// Long month name in the grammatical form used when the month is a part of
	// a complete date.
	Name string

	// Abbreviated month name in the grammatical form used when the month is
	// a part of a complete date.
	Abbr string

	// Long month name in the grammatical form used when the month is named by
	// itself.
	GenitiveName string

	// Abbreviated month name in the grammatical form used when the month is
	// named by itself.
	GenitiveAbbr string

	// Additional month names recognized during parsing.
	ExtraNames []string

	// Additional abbreviated month names recognized during parsing.
	ExtraAbbr []string
}

func (MonthInfo) Clone

func (mi MonthInfo) Clone() MonthInfo

Clone returns a deep copy which can be modified without affecting the original.

Jump to

Keyboard shortcuts

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