コード例 #1
0
ファイル: nr.go プロジェクト: beatgammit/ginta
// installs this format - should be called at the very start of the program, prior to registring
// the first provider.
func Install() {
	fmt.RegisterFormat(Format, fmt.FormatDefinitionFunc(parse))
}
コード例 #2
0
ファイル: time.go プロジェクト: beatgammit/ginta
// Registers the date formats with the format package
func Install() {
	fmt.RegisterFormat(DateFormat, dateFormatType(DateFormat))
	fmt.RegisterFormat(TimeFormat, dateFormatType(TimeFormat))
	fmt.RegisterFormat(DateTimeFormat, dateFormatType(DateTimeFormat))
}