17 lines
283 B
Go
17 lines
283 B
Go
package ical
|
|
|
|
type Calendar struct {
|
|
Items []CalendarEvent
|
|
}
|
|
|
|
func (this *Calendar) Serialize() string {
|
|
serializer := calSerializer{
|
|
calendar: this,
|
|
buffer: new(strBuffer),
|
|
}
|
|
return serializer.serialize()
|
|
}
|
|
|
|
func (this *Calendar) ToICS() string {
|
|
return this.Serialize()
|
|
}
|