cschomburg / vdir

A Go Package for encoding of vCard and iCalendar formats.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vdir

API Documentation BSD License

Go Package vdir implements RFC 2425 directory encoding with support for vCard and iCalendar profiles.

The directory blocks can be mapped to an arbitrary Go Value which is described in the Marshal and Unmarshal functions. In addition, the package provides conversions to/from a generalized Object representation which allows for detailed access and easier modification.

Install

go get "github.com/xconstruct/vdir"

Example

vcf := []byte("BEGIN:VCARD ...")

var c vdir.Card
err := vdir.Unmarshal(vcf, &c)
fmt.Println(c.FormattedName)
fmt.Println(c.Addresses[0].Street)

About

A Go Package for encoding of vCard and iCalendar formats.

License:BSD 2-Clause "Simplified" License


Languages

Language:Go 100.0%