Documentation
¶
Overview ¶
Package types 常用类型的定义
Index ¶
- Variables
- func SexValidator(v Sex) bool
- type Int64s
- type Sex
- func (s Sex) IsValid() bool
- func (s Sex) MarshalCBOR() ([]byte, error)
- func (s Sex) MarshalText() ([]byte, error)
- func (Sex) OpenAPISchema(s *openapi.Schema)
- func (Sex) PrimitiveType() core.PrimitiveType
- func (s *Sex) Scan(src any) error
- func (s Sex) String() string
- func (s *Sex) UnmarshalCBOR(p []byte) error
- func (s *Sex) UnmarshalText(p []byte) error
- func (s Sex) Value() (driver.Value, error)
- type Strings
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SexRule = filter.V(SexValidator, locales.InvalidValue) SexSliceRule = filter.SV[[]Sex](SexValidator, locales.InvalidValue) SexFilter = filter.NewBuilder(SexRule) SexSliceFilter = filter.NewBuilder(SexSliceRule) )
Functions ¶
func SexValidator ¶
Types ¶
type Sex ¶
type Sex int8
Sex 性别
func (Sex) MarshalCBOR ¶ added in v0.8.14
func (Sex) MarshalText ¶
func (Sex) OpenAPISchema ¶
func (Sex) PrimitiveType ¶
func (Sex) PrimitiveType() core.PrimitiveType
func (*Sex) UnmarshalCBOR ¶ added in v0.8.14
func (*Sex) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.