示例#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))
}