Documentation
¶
Index ¶
- func GetAllFields(typ reflect.Type) []reflect.StructField
- func GetFieldValue(field reflect.Value) reflect.Value
- func GetFieldValueByIndex[T any](object T, index int) interface{}
- func GetFieldValueByName[T any](object T, name string) interface{}
- func GetFieldValueFromMethodAndObject[T interface{}](object T, name string) reflect.Value
- func GetFieldValueFromMethodAndReflectValue(val reflect.Value, name string) reflect.Value
- func MethodPath(f interface{}) string
- func ObjectTypePath(obj any) string
- func SetFieldValue(field reflect.Value, value interface{})
- func SetFieldValueByIndex[T any](object T, index int, value interface{})
- func SetFieldValueByName[T any](object T, name string, value interface{})
- func SetValue[T any](data T, value interface{})
- func TypePath[T any]() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllFields ¶
func GetAllFields(typ reflect.Type) []reflect.StructField
func GetFieldValueByIndex ¶
func GetFieldValueByName ¶
func MethodPath ¶
func MethodPath(f interface{}) string
func ObjectTypePath ¶
func SetFieldValue ¶
func SetFieldValueByIndex ¶
func SetFieldValueByName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.