age

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAge

func GetAge(birthDate time.Time) int

func GetAgeAt

func GetAgeAt(birthDate, now time.Time) int

func GetDate

func GetDate(year, month, day int) time.Time

func GetRandomBirthDateByAge

func GetRandomBirthDateByAge(age int) time.Time

func GetRandomBirthDateByAgeRange

func GetRandomBirthDateByAgeRange(fromAge, toAge int) time.Time

func GetRandomBirthDateByAgeRangeAt

func GetRandomBirthDateByAgeRangeAt(fromAge, toAge int, now time.Time) time.Time

func LoadData

func LoadData(filepath string) error

func Random

func Random(p *models.Person)

Types

This section is empty.

Jump to

Keyboard shortcuts

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