32 lines
913 B
Go
32 lines
913 B
Go
package properties
|
|
|
|
import "strings"
|
|
|
|
type PropertyName string
|
|
|
|
const (
|
|
UIDPropertyName PropertyName = "UID"
|
|
CommentPropertyName = "COMMENT"
|
|
OrganizerPropertyName = "ORGANIZER"
|
|
AttendeePropertyName = "ATTENDEE"
|
|
ExceptionDateTimesPropertyName = "EXDATE"
|
|
RecurrenceDateTimesPropertyName = "RDATE"
|
|
RecurrenceRulePropertyName = "RRULE"
|
|
LocationPropertyName = "LOCATION"
|
|
)
|
|
|
|
type ParameterName string
|
|
|
|
const (
|
|
CanonicalNameParameterName ParameterName = "CN"
|
|
TimeZoneIdPropertyName = "TZID"
|
|
ValuePropertyName = "VALUE"
|
|
AlternateRepresentationName = "ALTREP"
|
|
)
|
|
|
|
type Params map[ParameterName]string
|
|
|
|
func (p PropertyName) Equals(test string) bool {
|
|
return strings.EqualFold(string(p), test)
|
|
}
|