contact

package
v0.0.0-...-0afad3f Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	PostalCode      uint64
	StreetAndNumber string
	City            string
	State           string
	Country         string
}

type Contact

type Contact struct {
	Name    string
	Surname string
	Address Address
	Phone   *phonenumbers.PhoneNumber
	Email   *mail.Address
	Website *url.URL
}

func New

func New(
	name string,
	surname string,
	postalCode string,
	streetAndNumber string,
	city string,
	state string,
	countryAlpha2 string,
	countryAlpha3 string,
	phone string,
	email string,
	website string,
) (Contact, error)

func (Contact) String

func (c Contact) String() string

Jump to

Keyboard shortcuts

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