Documentation ¶
Overview ¶
Package reflection provides some reflection functions for internal usage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValueToInterface ¶
ValueToInterface converts reflect value to its interface type.
Types ¶
type OriginTypeAndKindOutput ¶
type OriginTypeAndKindOutput struct { InputType reflect.Type InputKind reflect.Kind OriginType reflect.Type OriginKind reflect.Kind }
func OriginTypeAndKind ¶
func OriginTypeAndKind(value interface{}) (out OriginTypeAndKindOutput)
OriginTypeAndKind retrieves and returns the original reflect type and kind.
type OriginValueAndKindOutput ¶
type OriginValueAndKindOutput struct { InputValue reflect.Value InputKind reflect.Kind OriginValue reflect.Value OriginKind reflect.Kind }
func OriginValueAndKind ¶
func OriginValueAndKind(value interface{}) (out OriginValueAndKindOutput)
OriginValueAndKind retrieves and returns the original reflect value and kind.
Click to show internal directories.
Click to hide internal directories.