vcard

package
v0.53.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package vcard implement RFC6350 for encoding and decoding VCard formatted data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gender

type Gender struct {
	Desc string
	Sex  rune
}

Gender contains contact's sex and description.

Sex may contain one of this value: M (male), F (female), O (other), N (none), or U (unknown).

type GeoLocation

type GeoLocation struct {
	Lat  float32
	Long float32
}

GeoLocation define a location in latitude and longitude format.

type Messaging

type Messaging struct {
	Type string
	URI  string
}

Messaging define list of messaging protocol.

type Relation

type Relation struct {
	Type string
	URI  string
}

Relation define a contact relation to other contact URI.

type Resource

type Resource struct {
	Type string
	URI  string
	Data []byte
}

Resource define common resource located in URI or embedded in Data.

type VCard

type VCard struct {
	UID          string
	Source       []string
	Kind         string
	Fn           string
	N            contact.Name
	Nickname     []string
	Photo        []Resource
	Bday         contact.Date
	Anniversary  contact.Date
	Gender       Gender
	Adr          []contact.Address
	Tel          []contact.Phone
	Email        []contact.Email
	Impp         []Messaging
	Lang         []string
	TZ           string
	Geo          []GeoLocation
	Title        []string
	Role         []string
	Org          []string
	Related      []Relation
	Categories   []string
	Note         []string
	ProdID       string
	Sound        []Resource
	ClientPIDMap string
	Key          []Resource
}

VCard define vcard 4.0 data structure.

Jump to

Keyboard shortcuts

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