Documentation ¶
Index ¶
- Variables
- func CallFunc(object interface{}, args ...interface{}) (interface{}, error)
- func CallMethodByName(object interface{}, name string, args ...interface{}) (interface{}, error)
- func DeepFields(reflectType reflect.Type) []reflect.StructField
- func GetEmbeddedInterfaceField(object interface{}) (field reflect.StructField)
- func GetFieldValue(f interface{}, name string) reflect.Value
- func GetKind(kind reflect.Kind) reflect.Kind
- func GetKindByType(typ reflect.Type) reflect.Kind
- func GetKindByValue(val reflect.Value) reflect.Kind
- func GetLowerCaseObjectName(data interface{}) (string, error)
- func GetName(data interface{}) (name string, err error)
- func GetPkgPath(object interface{}) string
- func GetType(data interface{}) (typ reflect.Type, err error)
- func HasEmbeddedField(object interface{}, name string) bool
- func HasField(object interface{}, name string) bool
- func Indirect(reflectValue reflect.Value) reflect.Value
- func IndirectType(reflectType reflect.Type) reflect.Type
- func NewReflectType(st interface{}) interface{}
- func ParseObjectName(obj interface{}, eliminator string) string
- func ParseObjectPkgName(obj interface{}) string
- func SetFieldValue(object interface{}, name string, value interface{}) error
- func Validate(toValue interface{}) (*reflect.Value, error)
- func ValidateReflectType(obj interface{}, ...) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CallFunc ¶ added in v0.4.0
func CallFunc(object interface{}, args ...interface{}) (interface{}, error)
func CallMethodByName ¶
func DeepFields ¶
func DeepFields(reflectType reflect.Type) []reflect.StructField
func GetEmbeddedInterfaceField ¶ added in v0.5.0
func GetEmbeddedInterfaceField(object interface{}) (field reflect.StructField)
func NewReflectType ¶
func NewReflectType(st interface{}) interface{}
func ParseObjectName ¶ added in v0.3.0
ParseObjectName e.g. ExampleObject => example
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.