Awesome Go

go-vcard

CategoryText Processing
SubcategoryParsers/Encoders/Decoders
Stars0

Parse and format vCard

About go-vcard

go-vcard

Go Reference builds.sr.ht status

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

Frequently Asked Questions

What is go-vcard?

go-vcard is a Text Processing library for the Go programming language. Parse and format vCard

How do I install go-vcard?

Install go-vcard with the Go module system using `go get emersion/go-vcard`. Check the repository for the current installation instructions.

What category does go-vcard belong to?

go-vcard is listed under Text Processing, specifically Parsers/Encoders/Decoders.

← Back to Parsers/Encoders/Decoders