namesgenerator

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: MPL-2.0 Imports: 4 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CuttedPerson added in v1.0.4

type CuttedPerson struct {
	Name   string `json:"name"`
	Gender int    `json:"gender"`
}

CuttedPerson - struct with name and gender.

func IndianName added in v1.0.4

func IndianName() (string, CuttedPerson, error)

IndianName - generate random fullname from voc (Indian).

func IndianNameShort added in v1.0.4

func IndianNameShort() (string, CuttedPerson, error)

IndianNameShort - generate random fullname from voc (Indian).

func SomeName added in v1.0.4

func SomeName(names []CuttedPerson) (string, CuttedPerson, error)

SomeName - generate random fullname from voc.

func SomeNameShort added in v1.0.4

func SomeNameShort(names []CuttedPerson) (string, CuttedPerson, error)

SomeNameShort - generate random fullname from voc.

type Person

type Person struct {
	Name   string `json:"name"`
	Gender int    `json:"gender"`
	Desc   string `json:"desc"`
	URL    string `json:"url"`
}

Person - struct with awardee, male, description and wiki URL.

func Awardee

func Awardee(names []Person) (string, Person, error)

Awardee - generate random fullname from voc.

func AwardeeShort

func AwardeeShort(names []Person) (string, Person, error)

Awardee - generate random fullname from voc.

func ChemistryAwardee added in v1.0.4

func ChemistryAwardee() (string, Person, error)

ChemistryAwardee - generate random fullname from voc (Nobel Chemistry).

func ChemistryAwardeeShort added in v1.0.4

func ChemistryAwardeeShort() (string, Person, error)

ChemistryAwardee - generate random fullname from voc (Nobel Chemistry).

func PeaceAwardee

func PeaceAwardee() (string, Person, error)

PeaceAwardee - generate random fullname from voc (Nobel Peace).

func PeaceAwardeeShort

func PeaceAwardeeShort() (string, Person, error)

PeaceAwardee - generate random fullname from voc (Nobel Peace).

func PhysicsAwardee

func PhysicsAwardee() (string, Person, error)

PhysicsAwardee - generate random fullname from voc (Nobel Physics).

func PhysicsAwardeeShort

func PhysicsAwardeeShort() (string, Person, error)

PhysicsAwardee - generate random fullname from voc (Nobel Physics).

Jump to

Keyboard shortcuts

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