Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RConvert ¶
RConvert converts a reflect.Value to a different type.
If the value is not convertible to the type, the original value is returned.
If the pointer of `v` is invalid, a new value of type `t` is created, and the pointer is set to it, then the pointer is returned.
func RSet ¶
RSet sets a value from one reflect.Value to another.
If the destination value is not settable, this function will return false.
If the source value is not immediately assignable to the destination value, and the convert parameter is true, the source value will be converted to the destination value's type.
If the source value is not immediately assignable to the destination value, and the convert parameter is false, this function will return false.
Types ¶
This section is empty.