Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 688 Bytes

README.md

File metadata and controls

49 lines (33 loc) · 688 Bytes

build

vcard-go

A minimal library to manipulate VCard file using Golang. This library is based on RFC6350.

Installation

git clone https://github.com/mapaiva/vcard-go.git
cd vcard-go
make install

Usage

import (
	"github.com/mapaiva/vcard-go"
	"log"
)

func main() {
	cards, err := vcard.GetVCards("~/contacts.vcf")

	if err != nil {
		log.Fatal(err)
	}

	log.Println(cards)
}

Testing

make test

Lint

make lint

Documentation

Complete documentation available on https://godoc.org/github.com/mapaiva/vcard-go.