Documentation ¶
Index ¶
- func Field(v any, fieldName string) reflect.Value
- func FieldByIndex(v any, index int) reflect.Value
- func FieldByName(v any, field string) reflect.Value
- func Fields(v any) []reflect.Value
- func InvokeMethod(v any, methodName string, param ...any) []any
- func IsArray(v any) bool
- func IsNil(v any) bool
- func IsNotNil(v any) bool
- func IsSlice(v any) bool
- func IsStruct(v any) bool
- func Kind(v any) reflect.Kind
- func MethodByName(v any, methodName string) reflect.Value
- func Methods(v any) []reflect.Value
- func RealKind(v any) reflect.Kind
- func SliceType(v any) reflect.Type
- func StructField(v any, index int) reflect.StructField
- func StructFieldByName(v any, name string) reflect.StructField
- func StructFieldKinds(v any) []reflect.Kind
- func StructFieldNames(v any) []string
- func StructFieldTag(v any, field, key string) string
- func StructFields(v any) []reflect.StructField
- func StructNumField(v any) int
- func Type(v any) reflect.Type
- func Value(v any) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StructField ¶
func StructField(v any, index int) reflect.StructField
func StructFieldByName ¶
func StructFieldByName(v any, name string) reflect.StructField
func StructFieldKinds ¶
StructFieldKinds 获取结构体的所有Field的Kind
func StructFieldTag ¶
StructFieldTag 获取结构的指定字段的标签
func StructFields ¶
func StructFields(v any) []reflect.StructField
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.