sex

package
v0.0.0-...-ca80dc3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: CC-BY-SA-4.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unknown Sex = 0
	Asexual Sex = 1
	Male    Sex = 2
	Female  Sex = 3

	UnknownString string = "不明"
	AsexualString string = "両性"
	MaleString    string = "男性"
	FemaleString  string = "女性"
)

Variables

This section is empty.

Functions

func LoadFemaleNames

func LoadFemaleNames() map[string]struct{}

func LoadMaleNames

func LoadMaleNames() map[string]struct{}

func LoadNames

func LoadNames(bs []byte) map[string]struct{}

Types

type Func

type Func func(givenName string) Sex

func ByNameLists

func ByNameLists(maleNames, femaleNames map[string]struct{}) Func

type Sex

type Sex byte

func (Sex) String

func (s Sex) String() string

Jump to

Keyboard shortcuts

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