person

package
Version: v0.0.0-...-fd8ea14 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FullName

func FullName(p Namer) string

func Seed

func Seed()

Types

type Data

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

func (*Data) Populate

func (pd *Data) Populate(locale string)

type FirstNamer

type FirstNamer interface {
	FirstName() string
}

type LastNamer

type LastNamer interface {
	LastName() string
}

type Namer

type Namer interface {
	Prefixer
	FirstNamer
	LastNamer
	Suffixer
}

type Person

type Person struct {
	Data Data
}

func (Person) FirstName

func (p Person) FirstName() string

func (Person) LastName

func (p Person) LastName() string

func (Person) Prefix

func (p Person) Prefix() string

func (Person) Suffix

func (p Person) Suffix() string

type Prefixer

type Prefixer interface {
	Prefix() string
}

type Suffixer

type Suffixer interface {
	Suffix() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL