Documentation
¶
Overview ¶
Package internal GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Index ¶
- func MaxInt(bitSize uint) int64
- func MaxUint(bitSize uint) uint64
- func MinInt(bitSize uint) int64
- func Register(creator ValidatorProvider)
- func UnmarshalDecode(dec *jsontext.Decoder, out any, options ...jsontext.Options) error
- type Any
- type Array
- type Pointer
- type PostValidator
- type Primitive
- type Record
- type Struct
- type Validator
- type ValidatorOption
- type ValidatorProvider
- type Value
- type WithDefaultValue
- type WithElem
- type WithKey
- type WithOptional
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(creator ValidatorProvider)
Types ¶
type PostValidator ¶
type Validator ¶
func New ¶
func New(option ValidatorOption) (Validator, error)
func NewWithStructField ¶
func NewWithStructField(sf *jsonflags.StructField) (Validator, error)
type ValidatorOption ¶
type ValidatorOption struct { Type reflect.Type Rule string String bool Optional bool DefaultValue string }
func (*ValidatorOption) RuntimeDoc ¶
func (v *ValidatorOption) RuntimeDoc(names ...string) ([]string, bool)
func (*ValidatorOption) SetDefaultValue ¶
func (o *ValidatorOption) SetDefaultValue(v string) error
type ValidatorProvider ¶
type WithDefaultValue ¶
type WithElem ¶
type WithElem interface {
Elem() ValidatorOption
}
type WithKey ¶
type WithKey interface {
Key() ValidatorOption
}
type WithOptional ¶
type WithOptional interface {
Optional() bool
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.