Versions in this module Expand all Collapse all v0 v0.1.0 Aug 18, 2026 Changes in this version + const Extension + const FieldAddress + const FieldAnniversary + const FieldBirthday + const FieldCalendarAddressURI + const FieldCalendarURI + const FieldCategories + const FieldClientPIDMap + const FieldEmail + const FieldFormattedName + const FieldFreeOrBusyURL + const FieldGender + const FieldGeolocation + const FieldIMPP + const FieldKey + const FieldKind + const FieldLanguage + const FieldLogo + const FieldMember + const FieldName + const FieldNickname + const FieldNote + const FieldOrganization + const FieldPhoto + const FieldProductID + const FieldRelated + const FieldRevision + const FieldRole + const FieldSound + const FieldSource + const FieldTelephone + const FieldTimezone + const FieldTitle + const FieldUID + const FieldURL + const FieldVersion + const FieldXML + const MIMEType + const ParamAltID + const ParamCalendarScale + const ParamGeolocation + const ParamLanguage + const ParamMediaType + const ParamPID + const ParamPreferred + const ParamSortAs + const ParamTimezone + const ParamType + const ParamValue + const TypeAcquaintance + const TypeAgent + const TypeCell + const TypeChild + const TypeCoResident + const TypeCoWorker + const TypeColleague + const TypeContact + const TypeCrush + const TypeDate + const TypeEmergency + const TypeFax + const TypeFriend + const TypeHome + const TypeKin + const TypeMe + const TypeMet + const TypeMuse + const TypeNeighbor + const TypePager + const TypeParent + const TypeSibling + const TypeSpouse + const TypeSweetheart + const TypeText + const TypeTextPhone + const TypeVideo + const TypeVoice + const TypeWork + func ToV4(card Card) + type Address struct + Country string + ExtendedAddress string + Locality string + PostOfficeBox string + PostalCode string + Region string + StreetAddress string + type Card map[string][]*Field + func (c Card) Add(k string, f *Field) + func (c Card) AddAddress(address *Address) + func (c Card) AddName(name *Name) + func (c Card) AddValue(k, v string) + func (c Card) Address() *Address + func (c Card) Addresses() []*Address + func (c Card) Categories() []string + func (c Card) FormattedNames() []*Field + func (c Card) Gender() (sex Sex, identity string) + func (c Card) Get(k string) *Field + func (c Card) Kind() Kind + func (c Card) Name() *Name + func (c Card) Names() []*Name + func (c Card) Preferred(k string) *Field + func (c Card) PreferredValue(k string) string + func (c Card) Revision() (time.Time, error) + func (c Card) Set(k string, f *Field) + func (c Card) SetAddress(address *Address) + func (c Card) SetCategories(categories []string) + func (c Card) SetGender(sex Sex, identity string) + func (c Card) SetKind(kind Kind) + func (c Card) SetName(name *Name) + func (c Card) SetRevision(t time.Time) + func (c Card) SetValue(k, v string) + func (c Card) Value(k string) string + func (c Card) Values(k string) []string + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (dec *Decoder) Decode() (Card, error) + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (enc *Encoder) Encode(c Card) error + type Field struct + Group string + Params Params + Value string + type Kind string + const KindGroup + const KindIndividual + const KindLocation + const KindOrganization + type Name struct + AdditionalName string + FamilyName string + GivenName string + HonorificPrefix string + HonorificSuffix string + type Params map[string][]string + func (p Params) Add(k, v string) + func (p Params) Get(k string) string + func (p Params) HasType(t string) bool + func (p Params) Set(k, v string) + func (p Params) Types() []string + type Sex string + const SexFemale + const SexMale + const SexNone + const SexOther + const SexUnknown + const SexUnspecified