| 1 | package icsscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ |
| 2 | |
| 3 | import ( |
| 4 | "bytesscip-go gomod github.com/golang/go/src go1.13 bytes/" |
| 5 | "encoding/base64scip-go gomod github.com/golang/go/src go1.13 `encoding/base64`/" |
| 6 | "errorsscip-go gomod github.com/golang/go/src go1.13 errors/" |
| 7 | "fmtscip-go gomod github.com/golang/go/src go1.13 fmt/" |
| 8 | "ioscip-go gomod github.com/golang/go/src go1.13 io/" |
| 9 | "regexpscip-go gomod github.com/golang/go/src go1.13 regexp/" |
| 10 | "strconvscip-go gomod github.com/golang/go/src go1.13 strconv/" |
| 11 | "stringsscip-go gomod github.com/golang/go/src go1.13 strings/" |
| 12 | "timescip-go gomod github.com/golang/go/src go1.13 time/" |
| 13 | ) |
| 14 | |
| 15 | type Componentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Component# interface { |
| 16 | UnknownPropertiesIANAPropertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Component#UnknownPropertiesIANAProperties.() []IANAPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/IANAProperty# |
| 17 | SubComponentsscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Component#SubComponents.() []Componentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Component# |
| 18 | serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Component#serialize.(b ioscip-go gomod github.com/golang/go/src go1.13 io/.Writerscip-go gomod github.com/golang/go/src go1.13 io/Writer#) |
| 19 | } |
| 20 | |
| 21 | type ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase# struct { |
| 22 | Propertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Properties. []IANAPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/IANAProperty# |
| 23 | Componentsscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Components. []Componentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Component# |
| 24 | } |
| 25 | |
| 26 | func (cb *ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#) UnknownPropertiesIANAPropertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#UnknownPropertiesIANAProperties().() []IANAPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/IANAProperty# { |
| 27 | return cb.Propertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Properties. |
| 28 | } |
| 29 | |
| 30 | func (cb *ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#) SubComponentsscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SubComponents().() []Componentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Component# { |
| 31 | return cb.Componentsscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Components. |
| 32 | } |
| 33 | func (base ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#) serializeThisscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#serializeThis().(writer ioscip-go gomod github.com/golang/go/src go1.13 io/.Writerscip-go gomod github.com/golang/go/src go1.13 io/Writer#, componentType string) { |
| 34 | fmtscip-go gomod github.com/golang/go/src go1.13 fmt/.Fprintscip-go gomod github.com/golang/go/src go1.13 fmt/Fprint().(writer, "BEGIN:"+componentType, "\r\n") |
| 35 | for _, p := range base.Propertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Properties. { |
| 36 | p.serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#serialize().(writer) |
| 37 | } |
| 38 | for _, c := range base.Componentsscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Components. { |
| 39 | c.serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Component#serialize.(writer) |
| 40 | } |
| 41 | fmtscip-go gomod github.com/golang/go/src go1.13 fmt/.Fprintscip-go gomod github.com/golang/go/src go1.13 fmt/Fprint().(writer, "END:"+componentType, "\r\n") |
| 42 | } |
| 43 | |
| 44 | func (cb *ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#) GetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#GetProperty().(componentProperty ComponentPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentProperty#) *IANAPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/IANAProperty# { |
| 45 | for i := range cb.Propertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Properties. { |
| 46 | if cb.Propertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Properties.[i].IANATokenscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#IANAToken. == string(componentProperty) { |
| 47 | return &cb.Propertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Properties.[i] |
| 48 | } |
| 49 | } |
| 50 | return nil |
| 51 | } |
| 52 | |
| 53 | func (cb *ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#) SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(property ComponentPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentProperty#, value string, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 54 | for i := range cb.Propertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Properties. { |
| 55 | if cb.Propertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Properties.[i].IANATokenscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#IANAToken. == string(property) { |
| 56 | cb.Propertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Properties.[i].Valuescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#Value. = value |
| 57 | cb.Propertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Properties.[i].ICalParametersscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#ICalParameters. = map[string][]string{} |
| 58 | for _, p := range props { |
| 59 | k, v := p.KeyValuescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#KeyValue.() |
| 60 | cb.Propertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Properties.[i].ICalParametersscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#ICalParameters.[k] = v |
| 61 | } |
| 62 | return |
| 63 | } |
| 64 | } |
| 65 | cb.AddPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#AddProperty().(property, value, props...) |
| 66 | } |
| 67 | |
| 68 | func (cb *ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#) AddPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#AddProperty().(property ComponentPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentProperty#, value string, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 69 | r := IANAPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/IANAProperty#{ |
| 70 | BasePropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#{ |
| 71 | IANATokenscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#IANAToken.: string(property), |
| 72 | Valuescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#Value.: value, |
| 73 | ICalParametersscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#ICalParameters.: map[string][]string{}, |
| 74 | }, |
| 75 | } |
| 76 | for _, p := range props { |
| 77 | k, v := p.KeyValuescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#KeyValue.() |
| 78 | r.ICalParametersscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#ICalParameters.[k] = v |
| 79 | } |
| 80 | cb.Propertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Properties. = append(cb.Propertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Properties., r) |
| 81 | } |
| 82 | |
| 83 | type VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent# struct { |
| 84 | ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#ComponentBase. |
| 85 | } |
| 86 | |
| 87 | func (c *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#serialize().(w ioscip-go gomod github.com/golang/go/src go1.13 io/.Writerscip-go gomod github.com/golang/go/src go1.13 io/Writer#) { |
| 88 | c.ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#ComponentBase..serializeThisscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#serializeThis().(w, "VEVENT") |
| 89 | } |
| 90 | |
| 91 | func (c *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) Serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#Serialize().() string { |
| 92 | b := &bytesscip-go gomod github.com/golang/go/src go1.13 bytes/.Bufferscip-go gomod github.com/golang/go/src go1.13 bytes/Buffer#{} |
| 93 | c.ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#ComponentBase..serializeThisscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#serializeThis().(b, "VEVENT") |
| 94 | return b.Stringscip-go gomod github.com/golang/go/src go1.13 bytes/Buffer#String().() |
| 95 | } |
| 96 | |
| 97 | const ( |
| 98 | icalTimestampFormatUtcscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalTimestampFormatUtc. = "20060102T150405Z" |
| 99 | icalTimestampFormatLocalscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalTimestampFormatLocal. = "20060102T150405" |
| 100 | icalDateFormatUtcscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalDateFormatUtc. = "20060102Z" |
| 101 | icalDateFormatLocalscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalDateFormatLocal. = "20060102" |
| 102 | ) |
| 103 | |
| 104 | var ( |
| 105 | timeStampVariationsscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/timeStampVariations. = regexpscip-go gomod github.com/golang/go/src go1.13 regexp/.MustCompilescip-go gomod github.com/golang/go/src go1.13 regexp/MustCompile().("^([0-9]{8})?([TZ])?([0-9]{6})?(Z)?$") |
| 106 | ) |
| 107 | |
| 108 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) SetCreatedTimescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetCreatedTime().(t timescip-go gomod github.com/golang/go/src go1.13 time/.Timescip-go gomod github.com/golang/go/src go1.13 time/Time#, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 109 | event.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertyCreatedscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyCreated., t.UTCscip-go gomod github.com/golang/go/src go1.13 time/Time#UTC().().Formatscip-go gomod github.com/golang/go/src go1.13 time/Time#Format().(icalTimestampFormatUtcscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalTimestampFormatUtc.), props...) |
| 110 | } |
| 111 | |
| 112 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) SetDtStampTimescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetDtStampTime().(t timescip-go gomod github.com/golang/go/src go1.13 time/.Timescip-go gomod github.com/golang/go/src go1.13 time/Time#, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 113 | event.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertyDtstampscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyDtstamp., t.UTCscip-go gomod github.com/golang/go/src go1.13 time/Time#UTC().().Formatscip-go gomod github.com/golang/go/src go1.13 time/Time#Format().(icalTimestampFormatUtcscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalTimestampFormatUtc.), props...) |
| 114 | } |
| 115 | |
| 116 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) SetModifiedAtscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetModifiedAt().(t timescip-go gomod github.com/golang/go/src go1.13 time/.Timescip-go gomod github.com/golang/go/src go1.13 time/Time#, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 117 | event.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertyLastModifiedscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyLastModified., t.UTCscip-go gomod github.com/golang/go/src go1.13 time/Time#UTC().().Formatscip-go gomod github.com/golang/go/src go1.13 time/Time#Format().(icalTimestampFormatUtcscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalTimestampFormatUtc.), props...) |
| 118 | } |
| 119 | |
| 120 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) SetSequencescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetSequence().(seq int, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 121 | event.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertySequencescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertySequence., strconvscip-go gomod github.com/golang/go/src go1.13 strconv/.Itoascip-go gomod github.com/golang/go/src go1.13 strconv/Itoa().(seq), props...) |
| 122 | } |
| 123 | |
| 124 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) SetStartAtscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetStartAt().(t timescip-go gomod github.com/golang/go/src go1.13 time/.Timescip-go gomod github.com/golang/go/src go1.13 time/Time#, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 125 | event.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertyDtStartscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyDtStart., t.UTCscip-go gomod github.com/golang/go/src go1.13 time/Time#UTC().().Formatscip-go gomod github.com/golang/go/src go1.13 time/Time#Format().(icalTimestampFormatUtcscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalTimestampFormatUtc.), props...) |
| 126 | } |
| 127 | |
| 128 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) SetAllDayStartAtscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetAllDayStartAt().(t timescip-go gomod github.com/golang/go/src go1.13 time/.Timescip-go gomod github.com/golang/go/src go1.13 time/Time#, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 129 | event.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertyDtStartscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyDtStart., t.UTCscip-go gomod github.com/golang/go/src go1.13 time/Time#UTC().().Formatscip-go gomod github.com/golang/go/src go1.13 time/Time#Format().(icalDateFormatUtcscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalDateFormatUtc.), props...) |
| 130 | } |
| 131 | |
| 132 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) SetEndAtscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetEndAt().(t timescip-go gomod github.com/golang/go/src go1.13 time/.Timescip-go gomod github.com/golang/go/src go1.13 time/Time#, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 133 | event.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertyDtEndscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyDtEnd., t.UTCscip-go gomod github.com/golang/go/src go1.13 time/Time#UTC().().Formatscip-go gomod github.com/golang/go/src go1.13 time/Time#Format().(icalTimestampFormatUtcscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalTimestampFormatUtc.), props...) |
| 134 | } |
| 135 | |
| 136 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) SetAllDayEndAtscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetAllDayEndAt().(t timescip-go gomod github.com/golang/go/src go1.13 time/.Timescip-go gomod github.com/golang/go/src go1.13 time/Time#, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 137 | event.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertyDtEndscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyDtEnd., t.UTCscip-go gomod github.com/golang/go/src go1.13 time/Time#UTC().().Formatscip-go gomod github.com/golang/go/src go1.13 time/Time#Format().(icalDateFormatUtcscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalDateFormatUtc.), props...) |
| 138 | } |
| 139 | |
| 140 | // SetDuration updates the duration of an event. |
| 141 | // This function will set either the end or start time of an event depending what is already given. |
| 142 | // The duration defines the length of a event relative to start or end time. |
| 143 | // |
| 144 | // Notice: It will not set the DURATION key of the ics - only DTSTART and DTEND will be affected. |
| 145 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) SetDurationscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetDuration().(d timescip-go gomod github.com/golang/go/src go1.13 time/.Durationscip-go gomod github.com/golang/go/src go1.13 time/Duration#) error { |
| 146 | t, err := event.GetStartAtscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#GetStartAt().() |
| 147 | if err == nil { |
| 148 | event.SetEndAtscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetEndAt().(t.Addscip-go gomod github.com/golang/go/src go1.13 time/Time#Add().(d)) |
| 149 | return nil |
| 150 | } else { |
| 151 | t, err = event.GetEndAtscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#GetEndAt().() |
| 152 | if err == nil { |
| 153 | event.SetStartAtscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetStartAt().(t.Addscip-go gomod github.com/golang/go/src go1.13 time/Time#Add().(-d)) |
| 154 | return nil |
| 155 | } |
| 156 | } |
| 157 | return errorsscip-go gomod github.com/golang/go/src go1.13 errors/.Newscip-go gomod github.com/golang/go/src go1.13 errors/New().("start or end not yet defined") |
| 158 | } |
| 159 | |
| 160 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) getTimePropscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#getTimeProp().(componentProperty ComponentPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentProperty#, expectAllDay bool) (timescip-go gomod github.com/golang/go/src go1.13 time/.Timescip-go gomod github.com/golang/go/src go1.13 time/Time#, error) { |
| 161 | timeProp := event.GetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#GetProperty().(componentProperty) |
| 162 | if timeProp == nil { |
| 163 | return timescip-go gomod github.com/golang/go/src go1.13 time/.Timescip-go gomod github.com/golang/go/src go1.13 time/Time#{}, errorsscip-go gomod github.com/golang/go/src go1.13 errors/.Newscip-go gomod github.com/golang/go/src go1.13 errors/New().("property not found") |
| 164 | } |
| 165 | |
| 166 | timeVal := timeProp.BasePropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/IANAProperty#BaseProperty..Valuescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#Value. |
| 167 | matched := timeStampVariationsscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/timeStampVariations..FindStringSubmatchscip-go gomod github.com/golang/go/src go1.13 regexp/Regexp#FindStringSubmatch().(timeVal) |
| 168 | if matched == nil { |
| 169 | return timescip-go gomod github.com/golang/go/src go1.13 time/.Timescip-go gomod github.com/golang/go/src go1.13 time/Time#{}, fmtscip-go gomod github.com/golang/go/src go1.13 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.13 fmt/Errorf().("time value not matched, got '%s'", timeVal) |
| 170 | } |
| 171 | tOrZGrp := matched[2] |
| 172 | zGrp := matched[4] |
| 173 | grp1len := len(matched[1]) |
| 174 | grp3len := len(matched[3]) |
| 175 | |
| 176 | tzId, tzIdOk := timeProp.ICalParametersscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#ICalParameters.["TZID"] |
| 177 | var propLoc *timescip-go gomod github.com/golang/go/src go1.13 time/.Locationscip-go gomod github.com/golang/go/src go1.13 time/Location# |
| 178 | if tzIdOk { |
| 179 | if len(tzId) != 1 { |
| 180 | return timescip-go gomod github.com/golang/go/src go1.13 time/.Timescip-go gomod github.com/golang/go/src go1.13 time/Time#{}, errorsscip-go gomod github.com/golang/go/src go1.13 errors/.Newscip-go gomod github.com/golang/go/src go1.13 errors/New().("expected only one TZID") |
| 181 | } |
| 182 | var tzErr error |
| 183 | propLoc, tzErr = timescip-go gomod github.com/golang/go/src go1.13 time/.LoadLocationscip-go gomod github.com/golang/go/src go1.13 time/LoadLocation().(tzId[0]) |
| 184 | if tzErr != nil { |
| 185 | return timescip-go gomod github.com/golang/go/src go1.13 time/.Timescip-go gomod github.com/golang/go/src go1.13 time/Time#{}, tzErr |
| 186 | } |
| 187 | } |
| 188 | dateStr := matched[1] |
| 189 | |
| 190 | if expectAllDay { |
| 191 | if grp1len > 0 { |
| 192 | if tOrZGrp == "Z" || zGrp == "Z" { |
| 193 | return timescip-go gomod github.com/golang/go/src go1.13 time/.ParseInLocationscip-go gomod github.com/golang/go/src go1.13 time/ParseInLocation().(icalDateFormatUtcscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalDateFormatUtc., dateStr+"Z", timescip-go gomod github.com/golang/go/src go1.13 time/.UTCscip-go gomod github.com/golang/go/src go1.13 time/UTC.) |
| 194 | } else { |
| 195 | if propLoc == nil { |
| 196 | return timescip-go gomod github.com/golang/go/src go1.13 time/.ParseInLocationscip-go gomod github.com/golang/go/src go1.13 time/ParseInLocation().(icalDateFormatLocalscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalDateFormatLocal., dateStr, timescip-go gomod github.com/golang/go/src go1.13 time/.Localscip-go gomod github.com/golang/go/src go1.13 time/Local.) |
| 197 | } else { |
| 198 | return timescip-go gomod github.com/golang/go/src go1.13 time/.ParseInLocationscip-go gomod github.com/golang/go/src go1.13 time/ParseInLocation().(icalDateFormatLocalscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalDateFormatLocal., dateStr, propLoc) |
| 199 | } |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | return timescip-go gomod github.com/golang/go/src go1.13 time/.Timescip-go gomod github.com/golang/go/src go1.13 time/Time#{}, fmtscip-go gomod github.com/golang/go/src go1.13 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.13 fmt/Errorf().("time value matched but unsupported all-day timestamp, got '%s'", timeVal) |
| 204 | } |
| 205 | |
| 206 | if grp1len > 0 && grp3len > 0 && tOrZGrp == "T" && zGrp == "Z" { |
| 207 | return timescip-go gomod github.com/golang/go/src go1.13 time/.ParseInLocationscip-go gomod github.com/golang/go/src go1.13 time/ParseInLocation().(icalTimestampFormatUtcscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalTimestampFormatUtc., timeVal, timescip-go gomod github.com/golang/go/src go1.13 time/.UTCscip-go gomod github.com/golang/go/src go1.13 time/UTC.) |
| 208 | } else if grp1len > 0 && grp3len > 0 && tOrZGrp == "T" && zGrp == "" { |
| 209 | if propLoc == nil { |
| 210 | return timescip-go gomod github.com/golang/go/src go1.13 time/.ParseInLocationscip-go gomod github.com/golang/go/src go1.13 time/ParseInLocation().(icalTimestampFormatLocalscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalTimestampFormatLocal., timeVal, timescip-go gomod github.com/golang/go/src go1.13 time/.Localscip-go gomod github.com/golang/go/src go1.13 time/Local.) |
| 211 | } else { |
| 212 | return timescip-go gomod github.com/golang/go/src go1.13 time/.ParseInLocationscip-go gomod github.com/golang/go/src go1.13 time/ParseInLocation().(icalTimestampFormatLocalscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalTimestampFormatLocal., timeVal, propLoc) |
| 213 | } |
| 214 | } else if grp1len > 0 && grp3len == 0 && tOrZGrp == "Z" && zGrp == "" { |
| 215 | return timescip-go gomod github.com/golang/go/src go1.13 time/.ParseInLocationscip-go gomod github.com/golang/go/src go1.13 time/ParseInLocation().(icalDateFormatUtcscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalDateFormatUtc., dateStr+"Z", timescip-go gomod github.com/golang/go/src go1.13 time/.UTCscip-go gomod github.com/golang/go/src go1.13 time/UTC.) |
| 216 | } else if grp1len > 0 && grp3len == 0 && tOrZGrp == "" && zGrp == "" { |
| 217 | if propLoc == nil { |
| 218 | return timescip-go gomod github.com/golang/go/src go1.13 time/.ParseInLocationscip-go gomod github.com/golang/go/src go1.13 time/ParseInLocation().(icalDateFormatLocalscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalDateFormatLocal., dateStr, timescip-go gomod github.com/golang/go/src go1.13 time/.Localscip-go gomod github.com/golang/go/src go1.13 time/Local.) |
| 219 | } else { |
| 220 | return timescip-go gomod github.com/golang/go/src go1.13 time/.ParseInLocationscip-go gomod github.com/golang/go/src go1.13 time/ParseInLocation().(icalDateFormatLocalscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/icalDateFormatLocal., dateStr, propLoc) |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | return timescip-go gomod github.com/golang/go/src go1.13 time/.Timescip-go gomod github.com/golang/go/src go1.13 time/Time#{}, fmtscip-go gomod github.com/golang/go/src go1.13 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.13 fmt/Errorf().("time value matched but not supported, got '%s'", timeVal) |
| 225 | } |
| 226 | |
| 227 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) GetStartAtscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#GetStartAt().() (timescip-go gomod github.com/golang/go/src go1.13 time/.Timescip-go gomod github.com/golang/go/src go1.13 time/Time#, error) { |
| 228 | return event.getTimePropscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#getTimeProp().(ComponentPropertyDtStartscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyDtStart., false) |
| 229 | } |
| 230 | |
| 231 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) GetEndAtscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#GetEndAt().() (timescip-go gomod github.com/golang/go/src go1.13 time/.Timescip-go gomod github.com/golang/go/src go1.13 time/Time#, error) { |
| 232 | return event.getTimePropscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#getTimeProp().(ComponentPropertyDtEndscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyDtEnd., false) |
| 233 | } |
| 234 | |
| 235 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) GetAllDayStartAtscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#GetAllDayStartAt().() (timescip-go gomod github.com/golang/go/src go1.13 time/.Timescip-go gomod github.com/golang/go/src go1.13 time/Time#, error) { |
| 236 | return event.getTimePropscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#getTimeProp().(ComponentPropertyDtStartscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyDtStart., true) |
| 237 | } |
| 238 | |
| 239 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) GetAllDayEndAtscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#GetAllDayEndAt().() (timescip-go gomod github.com/golang/go/src go1.13 time/.Timescip-go gomod github.com/golang/go/src go1.13 time/Time#, error) { |
| 240 | return event.getTimePropscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#getTimeProp().(ComponentPropertyDtEndscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyDtEnd., true) |
| 241 | } |
| 242 | |
| 243 | type TimeTransparencyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/TimeTransparency# string |
| 244 | |
| 245 | const ( |
| 246 | TransparencyOpaquescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/TransparencyOpaque. TimeTransparencyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/TimeTransparency# = "OPAQUE" // default |
| 247 | TransparencyTransparentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/TransparencyTransparent. TimeTransparencyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/TimeTransparency# = "TRANSPARENT" |
| 248 | ) |
| 249 | |
| 250 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) SetTimeTransparencyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetTimeTransparency().(v TimeTransparencyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/TimeTransparency#, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 251 | event.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertyTranspscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyTransp., string(v), props...) |
| 252 | } |
| 253 | |
| 254 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) SetSummaryscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetSummary().(s string, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 255 | event.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertySummaryscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertySummary., ToTextscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ToText().(s), props...) |
| 256 | } |
| 257 | |
| 258 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) SetStatusscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetStatus().(s ObjectStatusscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ObjectStatus#, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 259 | event.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertyStatusscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyStatus., ToTextscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ToText().(string(s)), props...) |
| 260 | } |
| 261 | |
| 262 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) SetDescriptionscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetDescription().(s string, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 263 | event.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertyDescriptionscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyDescription., ToTextscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ToText().(s), props...) |
| 264 | } |
| 265 | |
| 266 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) SetLocationscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetLocation().(s string, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 267 | event.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertyLocationscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyLocation., ToTextscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ToText().(s), props...) |
| 268 | } |
| 269 | |
| 270 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) SetGeoscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetGeo().(lat interface{}, lng interface{}, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 271 | event.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertyGeoscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyGeo., fmtscip-go gomod github.com/golang/go/src go1.13 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.13 fmt/Sprintf().("%v;%v", lat, lng), props...) |
| 272 | } |
| 273 | |
| 274 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) SetURLscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetURL().(s string, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 275 | event.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertyUrlscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyUrl., s, props...) |
| 276 | } |
| 277 | |
| 278 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) SetOrganizerscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetOrganizer().(s string, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 279 | event.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertyOrganizerscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyOrganizer., s, props...) |
| 280 | } |
| 281 | |
| 282 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) SetColorscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetColor().(s string, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 283 | event.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertyColorscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyColor., s, props...) |
| 284 | } |
| 285 | |
| 286 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) SetClassscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#SetClass().(c Classificationscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Classification#, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 287 | event.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertyClassscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyClass., string(c), props...) |
| 288 | } |
| 289 | |
| 290 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) AddAttendeescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#AddAttendee().(s string, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 291 | event.AddPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#AddProperty().(ComponentPropertyAttendeescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyAttendee., "mailto:"+s, props...) |
| 292 | } |
| 293 | |
| 294 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) AddExdatescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#AddExdate().(s string, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 295 | event.AddPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#AddProperty().(ComponentPropertyExdatescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyExdate., s, props...) |
| 296 | } |
| 297 | |
| 298 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) AddExrulescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#AddExrule().(s string, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 299 | event.AddPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#AddProperty().(ComponentPropertyExrulescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyExrule., s, props...) |
| 300 | } |
| 301 | |
| 302 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) AddRdatescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#AddRdate().(s string, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 303 | event.AddPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#AddProperty().(ComponentPropertyRdatescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyRdate., s, props...) |
| 304 | } |
| 305 | |
| 306 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) AddRrulescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#AddRrule().(s string, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 307 | event.AddPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#AddProperty().(ComponentPropertyRrulescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyRrule., s, props...) |
| 308 | } |
| 309 | |
| 310 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) AddAttachmentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#AddAttachment().(s string, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 311 | event.AddPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#AddProperty().(ComponentPropertyAttachscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyAttach., s, props...) |
| 312 | } |
| 313 | |
| 314 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) AddAttachmentURLscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#AddAttachmentURL().(uri string, contentType string) { |
| 315 | event.AddAttachmentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#AddAttachment().(uri, WithFmtTypescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/WithFmtType().(contentType)) |
| 316 | } |
| 317 | |
| 318 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) AddAttachmentBinaryscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#AddAttachmentBinary().(binary []byte, contentType string) { |
| 319 | event.AddAttachmentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#AddAttachment().(base64scip-go gomod github.com/golang/go/src go1.13 `encoding/base64`/.StdEncodingscip-go gomod github.com/golang/go/src go1.13 `encoding/base64`/StdEncoding..EncodeToStringscip-go gomod github.com/golang/go/src go1.13 `encoding/base64`/Encoding#EncodeToString().(binary), |
| 320 | WithFmtTypescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/WithFmtType().(contentType), WithEncodingscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/WithEncoding().("base64"), WithValuescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/WithValue().("binary"), |
| 321 | ) |
| 322 | } |
| 323 | |
| 324 | type Attendeescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Attendee# struct { |
| 325 | IANAPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Attendee#IANAProperty. |
| 326 | } |
| 327 | |
| 328 | func (attendee *Attendeescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Attendee#) Emailscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Attendee#Email().() string { |
| 329 | if stringsscip-go gomod github.com/golang/go/src go1.13 strings/.HasPrefixscip-go gomod github.com/golang/go/src go1.13 strings/HasPrefix().(attendee.Valuescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#Value., "mailto:") { |
| 330 | return attendee.Valuescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#Value.[len("mailto:"):] |
| 331 | } |
| 332 | return attendee.Valuescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#Value. |
| 333 | } |
| 334 | |
| 335 | func (attendee *Attendeescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Attendee#) ParticipationStatusscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Attendee#ParticipationStatus().() ParticipationStatusscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParticipationStatus# { |
| 336 | return ParticipationStatusscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParticipationStatus#(attendee.getPropertyFirstscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Attendee#getPropertyFirst().(ParameterParticipationStatusscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParameterParticipationStatus.)) |
| 337 | } |
| 338 | |
| 339 | func (attendee *Attendeescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Attendee#) getPropertyFirstscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Attendee#getPropertyFirst().(parameter Parameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Parameter#) string { |
| 340 | vs := attendee.getPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Attendee#getProperty().(parameter) |
| 341 | if len(vs) > 0 { |
| 342 | return vs[0] |
| 343 | } |
| 344 | return "" |
| 345 | } |
| 346 | |
| 347 | func (attendee *Attendeescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Attendee#) getPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Attendee#getProperty().(parameter Parameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Parameter#) []string { |
| 348 | if vs, ok := attendee.ICalParametersscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#ICalParameters.[string(parameter)]; ok { |
| 349 | return vs |
| 350 | } |
| 351 | return nil |
| 352 | } |
| 353 | |
| 354 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) Attendeesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#Attendees().() (r []*Attendeescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Attendee#) { |
| 355 | r = []*Attendeescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Attendee#{} |
| 356 | for i := range event.Propertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Properties. { |
| 357 | switch event.Propertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Properties.[i].IANATokenscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#IANAToken. { |
| 358 | case string(ComponentPropertyAttendeescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyAttendee.): |
| 359 | a := &Attendeescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Attendee#{ |
| 360 | event.Propertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Properties.[i], |
| 361 | } |
| 362 | r = append(r, a) |
| 363 | } |
| 364 | } |
| 365 | return |
| 366 | } |
| 367 | |
| 368 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) Idscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#Id().() string { |
| 369 | p := event.GetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#GetProperty().(ComponentPropertyUniqueIdscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyUniqueId.) |
| 370 | if p != nil { |
| 371 | return FromTextscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/FromText().(p.Valuescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#Value.) |
| 372 | } |
| 373 | return "" |
| 374 | } |
| 375 | |
| 376 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) AddAlarmscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#AddAlarm().() *VAlarmscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm# { |
| 377 | a := &VAlarmscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm#{ |
| 378 | ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm#ComponentBase.: ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#{}, |
| 379 | } |
| 380 | event.Componentsscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Components. = append(event.Componentsscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Components., a) |
| 381 | return a |
| 382 | } |
| 383 | |
| 384 | func (event *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#) Alarmsscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#Alarms().() (r []*VAlarmscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm#) { |
| 385 | r = []*VAlarmscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm#{} |
| 386 | for i := range event.Componentsscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Components. { |
| 387 | switch alarm := event.Componentsscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Components.[i].(type) { |
| 388 | case *VAlarmscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm#: |
| 389 | r = append(r, alarm) |
| 390 | } |
| 391 | } |
| 392 | return |
| 393 | } |
| 394 | |
| 395 | type VTodoscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTodo# struct { |
| 396 | ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTodo#ComponentBase. |
| 397 | } |
| 398 | |
| 399 | func (c *VTodoscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTodo#) serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTodo#serialize().(w ioscip-go gomod github.com/golang/go/src go1.13 io/.Writerscip-go gomod github.com/golang/go/src go1.13 io/Writer#) { |
| 400 | c.ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTodo#ComponentBase..serializeThisscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#serializeThis().(w, "VTODO") |
| 401 | } |
| 402 | |
| 403 | func (c *VTodoscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTodo#) Serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTodo#Serialize().() string { |
| 404 | b := &bytesscip-go gomod github.com/golang/go/src go1.13 bytes/.Bufferscip-go gomod github.com/golang/go/src go1.13 bytes/Buffer#{} |
| 405 | c.ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTodo#ComponentBase..serializeThisscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#serializeThis().(b, "VTODO") |
| 406 | return b.Stringscip-go gomod github.com/golang/go/src go1.13 bytes/Buffer#String().() |
| 407 | } |
| 408 | |
| 409 | type VJournalscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VJournal# struct { |
| 410 | ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VJournal#ComponentBase. |
| 411 | } |
| 412 | |
| 413 | func (c *VJournalscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VJournal#) serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VJournal#serialize().(w ioscip-go gomod github.com/golang/go/src go1.13 io/.Writerscip-go gomod github.com/golang/go/src go1.13 io/Writer#) { |
| 414 | c.ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VJournal#ComponentBase..serializeThisscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#serializeThis().(w, "VJOURNAL") |
| 415 | } |
| 416 | |
| 417 | func (c *VJournalscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VJournal#) Serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VJournal#Serialize().() string { |
| 418 | b := &bytesscip-go gomod github.com/golang/go/src go1.13 bytes/.Bufferscip-go gomod github.com/golang/go/src go1.13 bytes/Buffer#{} |
| 419 | c.ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VJournal#ComponentBase..serializeThisscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#serializeThis().(b, "VJOURNAL") |
| 420 | return b.Stringscip-go gomod github.com/golang/go/src go1.13 bytes/Buffer#String().() |
| 421 | } |
| 422 | |
| 423 | type VBusyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VBusy# struct { |
| 424 | ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VBusy#ComponentBase. |
| 425 | } |
| 426 | |
| 427 | func (c *VBusyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VBusy#) Serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VBusy#Serialize().() string { |
| 428 | b := &bytesscip-go gomod github.com/golang/go/src go1.13 bytes/.Bufferscip-go gomod github.com/golang/go/src go1.13 bytes/Buffer#{} |
| 429 | c.ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VBusy#ComponentBase..serializeThisscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#serializeThis().(b, "VBUSY") |
| 430 | return b.Stringscip-go gomod github.com/golang/go/src go1.13 bytes/Buffer#String().() |
| 431 | } |
| 432 | |
| 433 | func (c *VBusyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VBusy#) serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VBusy#serialize().(w ioscip-go gomod github.com/golang/go/src go1.13 io/.Writerscip-go gomod github.com/golang/go/src go1.13 io/Writer#) { |
| 434 | c.ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VBusy#ComponentBase..serializeThisscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#serializeThis().(w, "VBUSY") |
| 435 | } |
| 436 | |
| 437 | type VTimezonescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTimezone# struct { |
| 438 | ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTimezone#ComponentBase. |
| 439 | } |
| 440 | |
| 441 | func (c *VTimezonescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTimezone#) Serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTimezone#Serialize().() string { |
| 442 | b := &bytesscip-go gomod github.com/golang/go/src go1.13 bytes/.Bufferscip-go gomod github.com/golang/go/src go1.13 bytes/Buffer#{} |
| 443 | c.ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTimezone#ComponentBase..serializeThisscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#serializeThis().(b, "VTIMEZONE") |
| 444 | return b.Stringscip-go gomod github.com/golang/go/src go1.13 bytes/Buffer#String().() |
| 445 | } |
| 446 | |
| 447 | func (c *VTimezonescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTimezone#) serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTimezone#serialize().(w ioscip-go gomod github.com/golang/go/src go1.13 io/.Writerscip-go gomod github.com/golang/go/src go1.13 io/Writer#) { |
| 448 | c.ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTimezone#ComponentBase..serializeThisscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#serializeThis().(w, "VTIMEZONE") |
| 449 | } |
| 450 | |
| 451 | type VAlarmscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm# struct { |
| 452 | ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm#ComponentBase. |
| 453 | } |
| 454 | |
| 455 | func (c *VAlarmscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm#) Serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm#Serialize().() string { |
| 456 | b := &bytesscip-go gomod github.com/golang/go/src go1.13 bytes/.Bufferscip-go gomod github.com/golang/go/src go1.13 bytes/Buffer#{} |
| 457 | c.ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm#ComponentBase..serializeThisscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#serializeThis().(b, "VALARM") |
| 458 | return b.Stringscip-go gomod github.com/golang/go/src go1.13 bytes/Buffer#String().() |
| 459 | } |
| 460 | |
| 461 | func (c *VAlarmscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm#) serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm#serialize().(w ioscip-go gomod github.com/golang/go/src go1.13 io/.Writerscip-go gomod github.com/golang/go/src go1.13 io/Writer#) { |
| 462 | c.ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm#ComponentBase..serializeThisscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#serializeThis().(w, "VALARM") |
| 463 | } |
| 464 | |
| 465 | func (alarm *VAlarmscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm#) SetActionscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm#SetAction().(a Actionscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Action#, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 466 | alarm.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertyActionscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyAction., string(a), props...) |
| 467 | } |
| 468 | |
| 469 | func (alarm *VAlarmscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm#) SetTriggerscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm#SetTrigger().(s string, props ...PropertyParameterscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/PropertyParameter#) { |
| 470 | alarm.SetPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#SetProperty().(ComponentPropertyTriggerscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentPropertyTrigger., s, props...) |
| 471 | } |
| 472 | |
| 473 | type Standardscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Standard# struct { |
| 474 | ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Standard#ComponentBase. |
| 475 | } |
| 476 | |
| 477 | func (c *Standardscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Standard#) Serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Standard#Serialize().() string { |
| 478 | b := &bytesscip-go gomod github.com/golang/go/src go1.13 bytes/.Bufferscip-go gomod github.com/golang/go/src go1.13 bytes/Buffer#{} |
| 479 | c.ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Standard#ComponentBase..serializeThisscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#serializeThis().(b, "STANDARD") |
| 480 | return b.Stringscip-go gomod github.com/golang/go/src go1.13 bytes/Buffer#String().() |
| 481 | } |
| 482 | |
| 483 | func (c *Standardscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Standard#) serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Standard#serialize().(w ioscip-go gomod github.com/golang/go/src go1.13 io/.Writerscip-go gomod github.com/golang/go/src go1.13 io/Writer#) { |
| 484 | c.ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Standard#ComponentBase..serializeThisscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#serializeThis().(w, "STANDARD") |
| 485 | } |
| 486 | |
| 487 | type Daylightscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Daylight# struct { |
| 488 | ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Daylight#ComponentBase. |
| 489 | } |
| 490 | |
| 491 | func (c *Daylightscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Daylight#) Serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Daylight#Serialize().() string { |
| 492 | b := &bytesscip-go gomod github.com/golang/go/src go1.13 bytes/.Bufferscip-go gomod github.com/golang/go/src go1.13 bytes/Buffer#{} |
| 493 | c.ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Daylight#ComponentBase..serializeThisscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#serializeThis().(b, "DAYLIGHT") |
| 494 | return b.Stringscip-go gomod github.com/golang/go/src go1.13 bytes/Buffer#String().() |
| 495 | } |
| 496 | |
| 497 | func (c *Daylightscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Daylight#) serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Daylight#serialize().(w ioscip-go gomod github.com/golang/go/src go1.13 io/.Writerscip-go gomod github.com/golang/go/src go1.13 io/Writer#) { |
| 498 | c.ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Daylight#ComponentBase..serializeThisscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#serializeThis().(w, "DAYLIGHT") |
| 499 | } |
| 500 | |
| 501 | type GeneralComponentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/GeneralComponent# struct { |
| 502 | ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/GeneralComponent#ComponentBase. |
| 503 | Tokenscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/GeneralComponent#Token. string |
| 504 | } |
| 505 | |
| 506 | func (c *GeneralComponentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/GeneralComponent#) Serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/GeneralComponent#Serialize().() string { |
| 507 | b := &bytesscip-go gomod github.com/golang/go/src go1.13 bytes/.Bufferscip-go gomod github.com/golang/go/src go1.13 bytes/Buffer#{} |
| 508 | c.ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/GeneralComponent#ComponentBase..serializeThisscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#serializeThis().(b, c.Tokenscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/GeneralComponent#Token.) |
| 509 | return b.Stringscip-go gomod github.com/golang/go/src go1.13 bytes/Buffer#String().() |
| 510 | } |
| 511 | |
| 512 | func (c *GeneralComponentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/GeneralComponent#) serializescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/GeneralComponent#serialize().(w ioscip-go gomod github.com/golang/go/src go1.13 io/.Writerscip-go gomod github.com/golang/go/src go1.13 io/Writer#) { |
| 513 | c.ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/GeneralComponent#ComponentBase..serializeThisscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#serializeThis().(w, c.Tokenscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/GeneralComponent#Token.) |
| 514 | } |
| 515 | |
| 516 | func GeneralParseComponentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/GeneralParseComponent().(cs *CalendarStreamscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/CalendarStream#, startLine *BasePropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#) (Componentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Component#, error) { |
| 517 | var co Componentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Component# |
| 518 | switch startLine.Valuescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#Value. { |
| 519 | case "VCALENDAR": |
| 520 | return nil, errorsscip-go gomod github.com/golang/go/src go1.13 errors/.Newscip-go gomod github.com/golang/go/src go1.13 errors/New().("malformed calendar; vcalendar not where expected") |
| 521 | case "VEVENT": |
| 522 | co = ParseVEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseVEvent().(cs, startLine) |
| 523 | case "VTODO": |
| 524 | co = ParseVTodoscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseVTodo().(cs, startLine) |
| 525 | case "VJOURNAL": |
| 526 | co = ParseVJournalscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseVJournal().(cs, startLine) |
| 527 | case "VFREEBUSY": |
| 528 | co = ParseVBusyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseVBusy().(cs, startLine) |
| 529 | case "VTIMEZONE": |
| 530 | co = ParseVTimezonescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseVTimezone().(cs, startLine) |
| 531 | case "VALARM": |
| 532 | co = ParseVAlarmscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseVAlarm().(cs, startLine) |
| 533 | case "STANDARD": |
| 534 | co = ParseStandardscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseStandard().(cs, startLine) |
| 535 | case "DAYLIGHT": |
| 536 | co = ParseDaylightscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseDaylight().(cs, startLine) |
| 537 | default: |
| 538 | co = ParseGeneralComponentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseGeneralComponent().(cs, startLine) |
| 539 | } |
| 540 | return co, nil |
| 541 | } |
| 542 | |
| 543 | func ParseVEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseVEvent().(cs *CalendarStreamscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/CalendarStream#, startLine *BasePropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#) *VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent# { |
| 544 | r, err := ParseComponentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseComponent().(cs, startLine) |
| 545 | if err != nil { |
| 546 | return nil |
| 547 | } |
| 548 | rr := &VEventscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#{ |
| 549 | ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VEvent#ComponentBase.: r, |
| 550 | } |
| 551 | return rr |
| 552 | } |
| 553 | |
| 554 | func ParseVTodoscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseVTodo().(cs *CalendarStreamscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/CalendarStream#, startLine *BasePropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#) *VTodoscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTodo# { |
| 555 | r, err := ParseComponentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseComponent().(cs, startLine) |
| 556 | if err != nil { |
| 557 | return nil |
| 558 | } |
| 559 | rr := &VTodoscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTodo#{ |
| 560 | ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTodo#ComponentBase.: r, |
| 561 | } |
| 562 | return rr |
| 563 | } |
| 564 | |
| 565 | func ParseVJournalscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseVJournal().(cs *CalendarStreamscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/CalendarStream#, startLine *BasePropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#) *VJournalscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VJournal# { |
| 566 | r, err := ParseComponentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseComponent().(cs, startLine) |
| 567 | if err != nil { |
| 568 | return nil |
| 569 | } |
| 570 | rr := &VJournalscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VJournal#{ |
| 571 | ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VJournal#ComponentBase.: r, |
| 572 | } |
| 573 | return rr |
| 574 | } |
| 575 | |
| 576 | func ParseVBusyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseVBusy().(cs *CalendarStreamscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/CalendarStream#, startLine *BasePropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#) *VBusyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VBusy# { |
| 577 | r, err := ParseComponentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseComponent().(cs, startLine) |
| 578 | if err != nil { |
| 579 | return nil |
| 580 | } |
| 581 | rr := &VBusyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VBusy#{ |
| 582 | ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VBusy#ComponentBase.: r, |
| 583 | } |
| 584 | return rr |
| 585 | } |
| 586 | |
| 587 | func ParseVTimezonescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseVTimezone().(cs *CalendarStreamscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/CalendarStream#, startLine *BasePropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#) *VTimezonescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTimezone# { |
| 588 | r, err := ParseComponentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseComponent().(cs, startLine) |
| 589 | if err != nil { |
| 590 | return nil |
| 591 | } |
| 592 | rr := &VTimezonescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTimezone#{ |
| 593 | ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VTimezone#ComponentBase.: r, |
| 594 | } |
| 595 | return rr |
| 596 | } |
| 597 | |
| 598 | func ParseVAlarmscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseVAlarm().(cs *CalendarStreamscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/CalendarStream#, startLine *BasePropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#) *VAlarmscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm# { |
| 599 | r, err := ParseComponentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseComponent().(cs, startLine) |
| 600 | if err != nil { |
| 601 | return nil |
| 602 | } |
| 603 | rr := &VAlarmscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm#{ |
| 604 | ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/VAlarm#ComponentBase.: r, |
| 605 | } |
| 606 | return rr |
| 607 | } |
| 608 | |
| 609 | func ParseStandardscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseStandard().(cs *CalendarStreamscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/CalendarStream#, startLine *BasePropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#) *Standardscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Standard# { |
| 610 | r, err := ParseComponentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseComponent().(cs, startLine) |
| 611 | if err != nil { |
| 612 | return nil |
| 613 | } |
| 614 | rr := &Standardscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Standard#{ |
| 615 | ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Standard#ComponentBase.: r, |
| 616 | } |
| 617 | return rr |
| 618 | } |
| 619 | |
| 620 | func ParseDaylightscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseDaylight().(cs *CalendarStreamscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/CalendarStream#, startLine *BasePropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#) *Daylightscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Daylight# { |
| 621 | r, err := ParseComponentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseComponent().(cs, startLine) |
| 622 | if err != nil { |
| 623 | return nil |
| 624 | } |
| 625 | rr := &Daylightscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Daylight#{ |
| 626 | ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/Daylight#ComponentBase.: r, |
| 627 | } |
| 628 | return rr |
| 629 | } |
| 630 | |
| 631 | func ParseGeneralComponentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseGeneralComponent().(cs *CalendarStreamscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/CalendarStream#, startLine *BasePropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#) *GeneralComponentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/GeneralComponent# { |
| 632 | r, err := ParseComponentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseComponent().(cs, startLine) |
| 633 | if err != nil { |
| 634 | return nil |
| 635 | } |
| 636 | rr := &GeneralComponentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/GeneralComponent#{ |
| 637 | ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/GeneralComponent#ComponentBase.: r, |
| 638 | Tokenscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/GeneralComponent#Token.: startLine.Valuescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#Value., |
| 639 | } |
| 640 | return rr |
| 641 | } |
| 642 | |
| 643 | func ParseComponentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseComponent().(cs *CalendarStreamscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/CalendarStream#, startLine *BasePropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#) (ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#, error) { |
| 644 | cb := ComponentBasescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#{} |
| 645 | cont := true |
| 646 | for ln := 0; cont; ln++ { |
| 647 | l, err := cs.ReadLinescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/CalendarStream#ReadLine().() |
| 648 | if err != nil { |
| 649 | switch err { |
| 650 | case ioscip-go gomod github.com/golang/go/src go1.13 io/.EOFscip-go gomod github.com/golang/go/src go1.13 io/EOF.: |
| 651 | cont = false |
| 652 | default: |
| 653 | return cb, err |
| 654 | } |
| 655 | } |
| 656 | if l == nil || len(*l) == 0 { |
| 657 | continue |
| 658 | } |
| 659 | line, err := ParsePropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ParseProperty().(*l) |
| 660 | if err != nil { |
| 661 | return cb, fmtscip-go gomod github.com/golang/go/src go1.13 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.13 fmt/Errorf().("parsing component property %d: %w", ln, err) |
| 662 | } |
| 663 | if line == nil { |
| 664 | return cb, errorsscip-go gomod github.com/golang/go/src go1.13 errors/.Newscip-go gomod github.com/golang/go/src go1.13 errors/New().("parsing component line") |
| 665 | } |
| 666 | switch line.IANATokenscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#IANAToken. { |
| 667 | case "END": |
| 668 | switch line.Valuescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#Value. { |
| 669 | case startLine.Valuescip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/BaseProperty#Value.: |
| 670 | return cb, nil |
| 671 | default: |
| 672 | return cb, errorsscip-go gomod github.com/golang/go/src go1.13 errors/.Newscip-go gomod github.com/golang/go/src go1.13 errors/New().("unbalanced end") |
| 673 | } |
| 674 | case "BEGIN": |
| 675 | co, err := GeneralParseComponentscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/GeneralParseComponent().(cs, line) |
| 676 | if err != nil { |
| 677 | return cb, err |
| 678 | } |
| 679 | if co != nil { |
| 680 | cb.Componentsscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Components. = append(cb.Componentsscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Components., co) |
| 681 | } |
| 682 | default: // TODO put in all the supported types for type switching etc. |
| 683 | cb.Propertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Properties. = append(cb.Propertiesscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/ComponentBase#Properties., IANAPropertyscip-go gomod github.com/arran4/golang-ical . `github.com/arran4/golang-ical`/IANAProperty#{*line}) |
| 684 | } |
| 685 | } |
| 686 | return cb, errorsscip-go gomod github.com/golang/go/src go1.13 errors/.Newscip-go gomod github.com/golang/go/src go1.13 errors/New().("ran out of lines") |
| 687 | } |