common

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type AliasType

type AliasType uint8
const (
	AtEmail AliasType = 1 << iota // 1 邮箱
	AtPhone                       // 2 手机号
)

func (AliasType) String

func (this AliasType) String() string

type Gender

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

func (Gender) MarshalText

func (this Gender) MarshalText() ([]byte, error)

func (Gender) String

func (this Gender) String() string

func (*Gender) UnmarshalText

func (this *Gender) UnmarshalText(b []byte) (err error)

Jump to

Keyboard shortcuts

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