Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSameDeepEqual ¶ added in v2.2.5
IsSameDeepEqual 判断两个值是否相同
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.
type Reflection ¶ added in v2.16.1
type Reflection struct {
// contains filtered or unexported fields
}
var ReflectionHelper Reflection
func (*Reflection) CallMethodByName ¶ added in v2.16.1
CallMethodByName 通过名称调用方法
func (*Reflection) GetType ¶ added in v2.16.1
func (r *Reflection) GetType() reflect.Type
GetType 获取reflect.Type
func (*Reflection) GetValue ¶ added in v2.16.1
func (r *Reflection) GetValue() reflect.Value
GetValue 获取reflect.Value
func (*Reflection) IsSame ¶ added in v2.16.2
func (r *Reflection) IsSame(value any) bool
IsSame 判断两个类型是否相等
Click to show internal directories.
Click to hide internal directories.