2019-05-22 19:48:48 +02:00
|
|
|
package ical
|
|
|
|
|
|
|
|
type Calendar struct {
|
|
|
|
Items []CalendarEvent
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *Calendar) Serialize() string {
|
|
|
|
serializer := calSerializer{
|
|
|
|
calendar: this,
|
2019-05-24 19:45:33 +02:00
|
|
|
buffer: new(strBuffer),
|
2019-05-22 19:48:48 +02:00
|
|
|
}
|
|
|
|
return serializer.serialize()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *Calendar) ToICS() string {
|
|
|
|
return this.Serialize()
|
|
|
|
}
|