Documentation ¶
Index ¶
- Constants
- func MarshalProperty(p *Property) string
- func PropertyFromInterface(target interface{}) (p *Property, adds []*Property, err error)
- type CanDecodeParams
- type CanDecodeValue
- type CanEncodeAdditionalProperties
- type CanEncodeName
- type CanEncodeParams
- type CanEncodeTag
- type CanEncodeValue
- type CanValidateValue
- type Param
- type ParameterName
- type Params
- type Property
- type PropertyName
Constants ¶
View Source
const ( UIDPropertyName PropertyName = "UID" CommentPropertyName = "COMMENT" OrganizerPropertyName = "ORGANIZER" AttendeePropertyName = "ATTENDEE" ExceptionDateTimesPropertyName = "EXDATE" RecurrenceDateTimesPropertyName = "RDATE" RecurrenceRulePropertyName = "RRULE" LocationPropertyName = "LOCATION" EmailPropertyName = "EMAIL" PhonePropertyName = "TEL" NamePropertyName = "N" OrganizationPropertyName = "ORG" ParameterType = "TYPE" AddressBookServerMemberName = "X-ADDRESSBOOKSERVER-MEMBER" )
View Source
const ( CanonicalNameParameterName ParameterName = "CN" TimeZoneIdPropertyName = "TZID" ValuePropertyName = "VALUE" AlternateRepresentationName = "ALTREP" ABLabel = "X_ABLABEL" ParticipationStatusName = "PARTSTAT" )
Variables ¶
This section is empty.
Functions ¶
func MarshalProperty ¶
func PropertyFromInterface ¶
Types ¶
type CanDecodeParams ¶
type CanDecodeValue ¶
type CanEncodeName ¶
type CanEncodeName interface {
EncodeICalName() (PropertyName, error)
}
type CanEncodeParams ¶
type CanEncodeTag ¶
type CanEncodeValue ¶
type CanValidateValue ¶
type CanValidateValue interface {
ValidateICalValue() error
}
type Param ¶
type Param struct { Name ParameterName Value string }
type ParameterName ¶
type ParameterName string
type Property ¶
type Property struct { Name PropertyName Value, DefaultValue string Params Params OmitEmpty, Required bool Prefix string }
func NewProperty ¶
func PropertyFromStructField ¶
func PropertyFromStructField(fs reflect.StructField) (p *Property)
func UnmarshalProperty ¶
func (*Property) HasNameAndValue ¶
type PropertyName ¶
type PropertyName string
func (PropertyName) Equals ¶
func (p PropertyName) Equals(test string) bool
Click to show internal directories.
Click to hide internal directories.