mirror of
https://github.com/vbatts/srvdav.git
synced 2024-11-25 09:55:40 +00:00
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()
|
|
}
|