gender

package
v0.0.0-...-5b8e3ff Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidGender = errors.New("Invalid Gender value")
)

Functions

This section is empty.

Types

type Gender

type Gender uint8
const (
	Unknown Gender = 0 + iota
	Male
	Female
)

func ParseGender

func ParseGender(b []byte) Gender

ParseGender Male: mM1男; Female: fF2女

func (Gender) MarshalJSON

func (z Gender) MarshalJSON() ([]byte, error)

func (Gender) String

func (z Gender) String() string

String fmt.Stringer

func (*Gender) UnmarshalJSON

func (z *Gender) UnmarshalJSON(b []byte) (err error)

Jump to

Keyboard shortcuts

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