Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
vcard
✓ github.com/emersion/go-vcard
Decode a vCard string and print the formatted name.
package main
import (
"fmt"
"strings"
"github.com/emersion/go-vcard"
)
func main() {
input := "BEGIN:VCARD\nVERSION:4.0\nFN:John Doe\nEND:VCARD"
decoder := vcard.NewDecoder(strings.NewReader(input))
card, err := decoder.Decode()
if err != nil {
panic(err)
}
fmt.Println(card.Name)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20230815062825-8fda7d206ec9latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.