Documentation ¶
Index ¶
- Variables
- func CallMethodByName(object interface{}, name string) (interface{}, error)
- func DeepFields(reflectType reflect.Type) []reflect.StructField
- func GetFieldValue(f interface{}, name string) reflect.Value
- func GetKind(val reflect.Value) reflect.Kind
- func GetLowerCaseObjectName(data interface{}) (string, error)
- func GetName(data interface{}) (string, 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 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 ¶
View Source
var FieldCanNotBeSetError = errors.New("field can not be set")
View Source
var InvalidInputError = errors.New("input is invalid")
View Source
var InvalidMethodError = errors.New("method is invalid")
Functions ¶
func CallMethodByName ¶
func DeepFields ¶
func DeepFields(reflectType reflect.Type) []reflect.StructField
func GetFieldValue ¶
func GetLowerCaseObjectName ¶
func HasEmbeddedField ¶
func NewReflectType ¶
func NewReflectType(st interface{}) interface{}
func SetFieldValue ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.