Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Calendar ¶
type Calendar struct { Name string Description string URL string Version float64 Timezone *time.Location Events []Event }
Calendar represents a single calendar with events
func ParseCalendar ¶
ParseCalendar parses the calendar in the given url (can be a local path) and returns the parsed calendar with its events. If maxRepeats is greater than 0 new events will be added if an event has a repetition rule up to maxRepeats. If you pass a non-nil io.Writer the contents of the ics file will also be written to that writer.
type Event ¶
type Event struct { Start time.Time End time.Time Created time.Time Modified time.Time AlarmTime time.Duration ID string Status string Description string Location string Summary string RRule string RecurrenceID time.Time Class string Sequence int Attendees []Attendee Organizer Attendee WholeDayEvent bool }
Event represents an event in the calendar
func ExcludeRecurrences ¶
ExcludeRecurrences receives a list of events and removes the repetitions that have been overriden
Click to show internal directories.
Click to hide internal directories.