eval

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 4 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 {
	Street  string `json:"street"`
	City    string `json:"city"`
	Region  string `json:"region"`
	Country string `json:"country"`
}

type BirthInfo

type BirthInfo struct {
	Birthdate    date.Date  `json:"birthdate"`
	Birthtime    time.Time  `json:"birthtime"`
	BirthdatePTR *date.Date `json:"birthdate-ptr"`
	BirthtimePTR *time.Time `json:"birthtime-ptr"`
}

func (*BirthInfo) IsLeap

func (b *BirthInfo) IsLeap() bool

type Person

type Person struct {
	Name        string    `json:"name"`
	Address     *Address  `json:"address"`
	Birthdate   date.Date `json:"birthdate"`
	TimeOfBirth time.Time `json:"timeOfBirth"`
}

func (*Person) Age

func (p *Person) Age() int

func (*Person) AgeAt

func (p *Person) AgeAt(t time.Time) int

func (*Person) AgeAtString

func (p *Person) AgeAtString(d string) int

func (*Person) CountryIn

func (p *Person) CountryIn(countries ...string) bool

func (Person) IsResident

func (p Person) IsResident() bool

Jump to

Keyboard shortcuts

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