Documentation
¶
Index ¶
Constants ¶
View Source
const ( DateTimeFormat = "2006-01-02T15:04:05.999999999-07:00" DateTimeNoTimezone = "2006-01-02T15:04:05.999999999" DateTimeUTC = "2006-01-02T15:04:05.999999999Z" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
type Duration struct {
Years int64
Months int64
Days int64
Hours int64
Minutes int64
Seconds int64
Nanoseconds int64
Negative bool
}
func DurationFromString ¶
BenchmarkDurationFromString-8 5000000 241 ns/op BenchmarkDurationFromStringRegex-8 1000000 1924 ns/op
func (*Duration) MarshalXMLAttr ¶
func (*Duration) ToNanoseconds ¶
Click to show internal directories.
Click to hide internal directories.