beatscode / vcardgen

A simple vcard generation system for Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vCardGen

A simple vCard generator in Go

by Cathal Garvey, Copyright 2016, Licensed AGPLv3 or later.

About

Godoc Badge

This is just a vCard generator in Go, which isn't even entirely compliant. It is based upon vCards JS by Eric J Nesser.

It can be used to create a vCard string simply by creating and assigning to various properties, then calling card.GetFormattedString():

cathal := vcardgen.New()
cathal.FirstName = "Cathal"
cathal.MiddleName = "Joseph"
cathal.LastName = "Garvey"
cathal.CellPhone = "+353863434567"
cathal.Email = "cathal@xyz.xyz"
cathalVcard := cathal.GetFormattedString()

That's it! This isn't a project to be excited or proud of, because vCard is a pile of crap, as formats go. But, it's a common interchange format, so when needs must..

About

A simple vcard generation system for Go.


Languages

Language:Go 100.0%