Documentation ¶
Index ¶
- func Assign(source interface{}, target interface{}) error
- func ExpectPointer(i interface{}) error
- func ExpectStruct(i interface{}) error
- func ExpectStructPointer(i interface{}) error
- func FQSN(i interface{}) (fqtn string, err error)
- func GetField(s interface{}, fieldName string) (value interface{}, err error)
- func GetStructPointerValue(i interface{}) (value interface{}, err error)
- func IsPointer(i interface{}) bool
- func IsStruct(i interface{}) bool
- func IsStructPointer(i interface{}) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Assign ¶
func Assign(source interface{}, target interface{}) error
Assign one pointers value to an other pointers value
func ExpectPointer ¶
func ExpectPointer(i interface{}) error
ExpectPointer returns an error if the given interface is not a pointer
func ExpectStruct ¶
func ExpectStruct(i interface{}) error
ExpectStruct returns an error if the given interface is not a struct
func ExpectStructPointer ¶
func ExpectStructPointer(i interface{}) error
ExpectStructPointer returns an error if the given interface is not a pointer to a struct
func GetField ¶
GetField returns the value of some struct field (sub properties can be accessed by using dot notation: main.sub.value)
func GetStructPointerValue ¶
func GetStructPointerValue(i interface{}) (value interface{}, err error)
GetStructPointerValue returns the (struct) value of a pointer to a struct
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.