vdeck

package
v0.0.0-...-51513de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2017 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddrField

type AddrField struct {
	Type         []string
	POBox        string
	ExtendedAddr string
	Street       string
	Locality     string
	Region       string
	PostalCode   string
	Country      string
}

type CSV

type CSV []string

type NameField

type NameField struct {
	FamilyName        string
	GivenName         string
	Additional        []string
	HonorificPrefixes []string
	HonorificSuffixes []string
}

type TypedString

type TypedString struct {
	Type  []string
	Value string
}

func (TypedString) String

func (t TypedString) String() string

type VCard

type VCard struct {
	// Section 3.1: identification
	FullName string    `vcard:"FN"`
	Name     NameField `vcard:"N"`
	Nickname string    `vcard:"NICKNAME"`
	Photo    string    `vcard:"PHOTO"`
	Birthday string    `vcard:"BDAY"`

	// Section 3.2: delivery addressing
	Address []AddrField `vcard:"ADR"`
	Label   string      `vcard:"LABEL"`

	// Section 3.3: telecommunications addressing
	Tel    []TypedString `vcard:"TEL"`
	Email  []TypedString `vcard:"EMAIL"`
	Mailer string        `vcard:"MAILER"`

	// Section 3.4: geographical
	TZ  string `vcard:"TZ"`
	Geo string `vcard:"GEO"`

	// Section 3.5: organizational
	Title string `vcard:"TITLE"`
	Role  string `vcard:"ROLE"`
	Agent string `vcard:"AGENT"`
	Org   string `vcard:"ORG"`

	// Section 3.6: explanatory
	Categories CSV    `vcard:"CATEGORIES"`
	Note       string `vcard:"NOTE"`
	ProdID     string `vcard:"PRODID"`
	Rev        string `vcard:"REV"`
	SortString string `vcard:"SORT-STRING"`
	Sound      string `vcard:"SOUND"`
	Uid        string `vcard:"UID"`
	Url        string `vcard:"URL"`
	Version    string `vcard:"VERSION"`

	// Section 3.7: security
	Class string `vcard:"CLASS"`
	Key   string `vcard:"KEY"`

	Filename string // The path whence the vCard was loaded.
}

func ParseVcard

func ParseVcard(r io.Reader) (vc *VCard, err error)

func (VCard) String

func (vc VCard) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL