gender

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadGender = errors.New("bad gender")
)

Functions

This section is empty.

Types

type Gender

type Gender uint8

Gender - gender for russian language.

const (
	// Unknown - неизвестный род
	Unknown Gender = iota
	// Male - мужской род
	Male
	// Female - женский род
	Female
	// Neuter - средний род
	Neuter
)

func (Gender) Validate

func (g Gender) Validate() error

Validate returns ErrBadGender when Gender is not valid.

Jump to

Keyboard shortcuts

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