Documentation ¶
Index ¶
- func Validate(jsonMap gjson.Result, m any, validTagName string) error
- type Field
- func (f *Field) Bool() (bool, bool)
- func (f *Field) CurDataIndex() string
- func (f *Field) DefaultVal() string
- func (f *Field) DefaultValExits() bool
- func (f *Field) Exist() bool
- func (f *Field) Float() (float64, bool)
- func (f *Field) InheritTag() reflect.StructTag
- func (f *Field) Int() (int64, bool)
- func (f *Field) IsArray() bool
- func (f *Field) IsBool() bool
- func (f *Field) IsNumeric() bool
- func (f *Field) IsObject() bool
- func (f *Field) Key() string
- func (f *Field) Len() int
- func (f *Field) MapKeys() []string
- func (f *Field) MustBool() bool
- func (f *Field) MustFloat() float64
- func (f *Field) MustInt() int64
- func (f *Field) MustStr() string
- func (f *Field) MustUint() uint64
- func (f *Field) ParamKey() string
- func (f *Field) Parent() reflect.Type
- func (f *Field) Raw() string
- func (f *Field) Root() reflect.Type
- func (f *Field) RuleName() string
- func (f *Field) RuleVal() string
- func (f *Field) Self() reflect.Type
- func (f *Field) SetDataIdx(idx string)
- func (f *Field) Str() (string, bool)
- func (f *Field) StructField(valTyp reflect.Type, namespace string) (rule.Field, bool)
- func (f *Field) Tag() reflect.StructTag
- func (f *Field) ToString() string
- func (f *Field) Uint() (uint64, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Field ¶
func (*Field) CurDataIndex ¶
func (*Field) DefaultVal ¶
func (*Field) DefaultValExits ¶
func (*Field) InheritTag ¶
func (*Field) SetDataIdx ¶
func (*Field) StructField ¶
Click to show internal directories.
Click to hide internal directories.