demographics

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Age

type Age uint

func CalculateAge added in v0.15.1

func CalculateAge(cur, birth uint) Age

type CsvInput

type CsvInput interface {
	Age(string) (Age, bool)
	Sex(string) (Sex, bool)
	Indvs() []string
}

type Sex

type Sex uint
const (
	Unknown Sex = iota // Unknown is the default
	Female
	Male
)

func (Sex) String added in v0.7.0

func (s Sex) String() string

type ThreeColumnCsv

type ThreeColumnCsv struct {
	// contains filtered or unexported fields
}

func NewThreeColumnCsv

func NewThreeColumnCsv(f *os.File) *ThreeColumnCsv

func (*ThreeColumnCsv) Age

func (c *ThreeColumnCsv) Age(id string) (Age, bool)

func (*ThreeColumnCsv) Indvs added in v0.11.0

func (c *ThreeColumnCsv) Indvs() []string

func (*ThreeColumnCsv) Sex

func (c *ThreeColumnCsv) Sex(id string) (Sex, bool)

Jump to

Keyboard shortcuts

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