reflectionHelper

package
v0.0.0-...-258ee92 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllFields

func GetAllFields(typ reflect.Type) []reflect.StructField

func GetFieldValue

func GetFieldValue(field reflect.Value) reflect.Value

func GetFieldValueByIndex

func GetFieldValueByIndex[T any](object T, index int) interface{}

func GetFieldValueByName

func GetFieldValueByName[T any](object T, name string) interface{}

func GetFieldValueFromMethodAndObject

func GetFieldValueFromMethodAndObject[T interface{}](object T, name string) reflect.Value

func GetFieldValueFromMethodAndReflectValue

func GetFieldValueFromMethodAndReflectValue(val reflect.Value, name string) reflect.Value

func MethodPath

func MethodPath(f interface{}) string

func ObjectTypePath

func ObjectTypePath(obj any) string

func SetFieldValue

func SetFieldValue(field reflect.Value, value interface{})

func SetFieldValueByIndex

func SetFieldValueByIndex[T any](object T, index int, value interface{})

func SetFieldValueByName

func SetFieldValueByName[T any](object T, name string, value interface{})

func SetValue

func SetValue[T any](data T, value interface{})

func TypePath

func TypePath[T any]() string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL