Documentation
¶
Overview ¶
Package ref 反射扩展
Index ¶
- func GetPath[T interface{}]() string
- func GetPathByValue(table interface{}) string
- func IsInherit[TSource any, Target any]() bool
- func IsPointer(param interface{}) bool
- func IsPointerReturnValue(param interface{}) (interface{}, bool)
- func IsType[TSource any, Target any]() (*TSource, *Target, bool)
- func IsTypeByValue[T any](value any) (*T, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPointerReturnValue ¶
func IsPointerReturnValue(param interface{}) (interface{}, bool)
IsPointerReturnValue 判断是否是指针,并返回真实值
func IsTypeByValue ¶
IsTypeByValue 判断 value 是否等于或者实现 T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.