apple

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToSourceContacts

func ToSourceContacts(contacts []Contact, includeAvatars bool) []model.SourceContact

Types

type Contact

type Contact struct {
	Identifier string   `json:"identifier"`
	FirstName  string   `json:"first_name"`
	LastName   string   `json:"last_name"`
	FullName   string   `json:"full_name"`
	Emails     []string `json:"emails"`
	Phones     []string `json:"phones"`
	AvatarData []byte   `json:"avatar_data,omitempty"`
}

func Decode

func Decode(r io.Reader) ([]Contact, error)

func ReadFile

func ReadFile(path string) ([]Contact, error)

func ReadSystem

func ReadSystem(context.Context) ([]Contact, error)

func (Contact) Name

func (c Contact) Name() string

func (Contact) SourceContact

func (c Contact) SourceContact(includeAvatar bool) model.SourceContact

Jump to

Keyboard shortcuts

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