Documentation
¶
Index ¶
- func Deduplication[T comparable](l []T) []T
- func FillObj(s, t any) error
- func IsContains[T comparable](v T, vals []T) bool
- func IsSubPath(parentPath, subPath string) bool
- func IsUsername(s string) bool
- func IsZero[T comparable](vals ...T) bool
- func IsZeroOfRefVal(vals ...reflect.Value) bool
- func PtrTo[T any](v T) *T
- func RemoveError[T any](data T, err error) T
- func StructDeduplication[T comparable](l []T, uqField string) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deduplication ¶ added in v0.1.11
func Deduplication[T comparable](l []T) []T
Deduplication 数组去重
func IsContains ¶ added in v0.1.11
func IsContains[T comparable](v T, vals []T) bool
IsContains 判断是否为数组成员
func IsZeroOfRefVal ¶ added in v0.1.15
IsZeroOfRefVal 判断反射类型是否为零值
func StructDeduplication ¶ added in v0.1.18
func StructDeduplication[T comparable](l []T, uqField string) []T
StructDeduplication 结构体类型数组去重
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.