Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidDuration = errors.New("not a valid duration")
)
Functions ¶
Types ¶
type CalendarDuration ¶
func Parse ¶
func Parse(s string) (p CalendarDuration, err error)
func (*CalendarDuration) Bytes ¶
func (p *CalendarDuration) Bytes() []byte
func (CalendarDuration) MarshalText ¶
func (p CalendarDuration) MarshalText() (text []byte, err error)
MarshalText implements encoding.TextMarshaler.
func (*CalendarDuration) String ¶
func (p *CalendarDuration) String() string
func (*CalendarDuration) UnmarshalText ¶
func (p *CalendarDuration) UnmarshalText(text []byte) (err error)
UnmarshalText implements encoding.TextUnmarshaler.
Click to show internal directories.
Click to hide internal directories.