types

package
v0.0.0-...-552f7d1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Interfaces

func Interfaces()

func Run

func Run()

Types

type Birthdate

type Birthdate time.Time

new type "Birthdate" underlying type : time.Time (type Time from the time package)

type Country

type Country struct {
	Name    string
	ISOCode string
}

type ExchangeRate

type ExchangeRate map[string]float64

new type "ExchangeRate" underlying type is map[string]float64 map[string]float64 is a type litteral

type Firstname

type Firstname string

a new type Firstname underlying type : string

type Lastname

type Lastname string

type Person

type Person struct {
	GivenName Firstname
	Surname   Lastname
	Born      Birthdate
	Country   *Country
	Website   string
}

type User

type User struct {
	FirstName string
	LastName  string
	Email     string
}

func (*User) FullEmail

func (u *User) FullEmail() string

func (*User) Name

func (u *User) Name() string

func (*User) NameAndEmail

func (u *User) NameAndEmail() (string, string)

func (*User) SetFirstName

func (u *User) SetFirstName(name string)

pointer receiver: can modify the underlying data

func (User) SetFirstNameNotWorking

func (u User) SetFirstNameNotWorking(name string)

value receiver: everything in u gets copied before the method is called. you can't modify any property of the original receiver

type VATRate

type VATRate float64

a new type VATRate underlying type is float64

Jump to

Keyboard shortcuts

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