package
0.0.0-20241123141403-e7b9dc6866d0
Repository: https://github.com/unix-world/smartgoext.git
Documentation: pkg.go.dev
# README
go-vcard
A Go library to parse and format vCard.
Usage
f, err := os.Open("cards.vcf")
if err != nil {
log.Fatal(err)
}
defer f.Close()
dec := vcard.NewDecoder(f)
for {
card, err := dec.Decode()
if err == io.EOF {
break
} else if err != nil {
log.Fatal(err)
}
log.Println(card.PreferredValue(vcard.FieldFormattedName))
}
License
MIT
# Functions
NewDecoder creates a new Decoder reading cards from an io.Reader.
NewEncoder creates a new Encoder that writes cards to w.
ToV4 converts a card to vCard version 4.
# Constants
MIME type and file extension for VCard, defined in RFC 6350 section 10.1.
Delivery Addressing Properties.
Card properties.
Card properties.
Card properties.
Card properties.
Explanatory Properties.
Card properties.
Card properties.
Identification Properties.
Calendar Properties.
Card properties.
Card properties.
Instant Messaging and Presence Protocol.
Security Properties.
Card properties.
Card properties.
Card properties.
Card properties.
Card properties.
Card properties.
Card properties.
Card properties.
Card properties.
Card properties.
Card properties.
Card properties.
Card properties.
Card properties.
General Properties.
Communications Properties.
Geographical Properties.
Organizational Properties.
Card properties.
Card properties.
Card properties.
Card properties.
Values for FieldKind.
Values for FieldKind.
Values for FieldKind.
Values for FieldKind.
MIME type and file extension for VCard, defined in RFC 6350 section 10.1.
Card property parameters.
Card property parameters.
Card property parameters.
Card property parameters.
Card property parameters.
Card property parameters.
Card property parameters.
Card property parameters.
Card property parameters.
Card property parameters.
Card property parameters.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Values for ParamType.
Values for ParamType.
Values for ParamType.
Values for ParamType.
Values for ParamType.
For FieldRelated.
Values for ParamType.
Values for ParamType.
Values for ParamType.
Values for ParamType.
Values for ParamType.
Values for ParamType.
Values for ParamType.
Generic.
Values for ParamType.
Values for ParamType.
Values for ParamType.
Values for ParamType.
Values for ParamType.
Values for ParamType.
Values for ParamType.
Values for ParamType.
Values for ParamType.
Values for ParamType.
For FieldTelephone.
Values for ParamType.
Values for ParamType.
Default.
Values for ParamType.