Documentation ¶
Index ¶
Constants ¶
View Source
const DateFormat = "2006-01-02"
View Source
const TimeFormat = "15:04:05Z07:00"
Variables ¶
View Source
var TemplateISO8601 = template.Must(template.New("duration").Parse(`P{{if .Y}}{{.Y}}Y{{end}}{{if .M}}{{.M}}M{{end}}{{if .W}}{{.W}}W{{end}}{{if .D}}{{.D}}D{{end}}{{if .HasTimePart}}T{{end }}{{if .TH}}{{.TH}}H{{end}}{{if .TM}}{{.TM}}M{{end}}{{if .TS}}{{.TS}}S{{end}}`))
See duration.tmpl
Functions ¶
This section is empty.
Types ¶
type Date ¶
func (Date) MarshalJSON ¶
func (Date) MarshalText ¶
func (*Date) UnmarshalJSON ¶
func (*Date) UnmarshalText ¶
type Duration ¶
func (Duration) MarshalJSON ¶
func (Duration) MarshalText ¶
func (*Duration) UnmarshalJSON ¶
func (*Duration) UnmarshalText ¶
type Time ¶
func (Time) MarshalJSON ¶
func (Time) MarshalText ¶
func (*Time) UnmarshalJSON ¶
func (*Time) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.