Documentation
¶
Index ¶
- Constants
- type Calendar
- type CalendarEvent
- type Node
- func (this *Node) ChildByName(name string) *Node
- func (this *Node) ChildrenByName(name string) []*Node
- func (this *Node) DigParameter(paramPath ...string) (string, bool)
- func (this *Node) DigProperty(propPath ...string) (string, bool)
- func (this *Node) Parameter(name string, defaultValue string) string
- func (this *Node) PropDate(name string, defaultValue time.Time) time.Time
- func (this *Node) PropDuration(name string) time.Duration
- func (this *Node) PropInt(name string, defaultValue int) int
- func (this *Node) PropString(name string, defaultValue string) string
- func (this *Node) String() string
Constants ¶
View Source
const ( VCALENDAR = "VCALENDAR" VEVENT = "VEVENT" DTSTART = "DTSTART" DTEND = "DTEND" DURATION = "DURATION" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Calendar ¶
type Calendar struct {
Items []CalendarEvent
}
type CalendarEvent ¶
type CalendarEvent struct { Id string Summary string Description string Location string URL string CreatedAtUTC *time.Time ModifiedAtUTC *time.Time StartAt *time.Time EndAt *time.Time }
func (*CalendarEvent) EndAtUTC ¶
func (this *CalendarEvent) EndAtUTC() *time.Time
func (*CalendarEvent) Serialize ¶
func (this *CalendarEvent) Serialize() string
func (*CalendarEvent) StartAtUTC ¶
func (this *CalendarEvent) StartAtUTC() *time.Time
func (*CalendarEvent) ToICS ¶
func (this *CalendarEvent) ToICS() string
type Node ¶
type Node struct { Name string Value string Type int // 1 = Object, 0 = Name/Value Parameters map[string]string Children []*Node }
func ParseCalendar ¶
func (*Node) ChildByName ¶
func (*Node) ChildrenByName ¶
Click to show internal directories.
Click to hide internal directories.