Documentation
¶
Index ¶
- func AToInt(arr []interface{}) []int
- func AToInt64(arr []interface{}) []int64
- func Defined(data interface{}, field string) bool
- func Dict(values ...interface{}) (map[string]interface{}, error)
- func ExcludeElement[T EleType](all []T, src ...T) []T
- func FilterElement[T EleType](all []T, cb FilterFunc[T]) []T
- func IncludeElement[T EleType](all []T, src ...T) []T
- func IsMap(o interface{}) bool
- func IsNil(o interface{}) bool
- func IsSlice(o interface{}) bool
- func ParseTag(tag string) (string, tagOptions)
- func Recover(cleanups ...func())
- func RemoveDuplicateElement[T EleType](values []T) []T
- func RemoveElement[T EleType](all []T, src T) []T
- func StructFields(value reflect.Value, tagName string) []reflect.StructField
- func StructVal(s interface{}) reflect.Value
- func ToFloat64(value interface{}) float64
- func ToFloat64V2(reflectValue reflect.Value) float64
- func ToInt64(value interface{}) int64
- func ToInt64V2(reflectValue reflect.Value) int64
- func ToUInt64(value interface{}) uint64
- func ToUInt64V2(reflectValue reflect.Value) uint64
- type Bit
- type BitType
- type EleType
- type FilterFunc
- type Flag
- type IntegerType
- type RecoverFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExcludeElement ¶ added in v1.3.52
func ExcludeElement[T EleType](all []T, src ...T) []T
ExcludeElement 排除 找src不存在all
func FilterElement ¶ added in v1.3.52
func FilterElement[T EleType](all []T, cb FilterFunc[T]) []T
FilterElement 过滤某元素
func IncludeElement ¶ added in v1.3.52
func IncludeElement[T EleType](all []T, src ...T) []T
IncludeElement 包含 找src在all
func IsSlice ¶ added in v1.0.54
func IsSlice(o interface{}) bool
IsSlice checks if some variable is a slice
func RemoveDuplicateElement ¶ added in v1.0.53
func RemoveDuplicateElement[T EleType](values []T) []T
RemoveDuplicateElement 除重
func RemoveElement ¶ added in v1.3.52
func RemoveElement[T EleType](all []T, src T) []T
RemoveElement 移除某元素
func StructFields ¶ added in v1.1.36
func StructFields(value reflect.Value, tagName string) []reflect.StructField
func ToFloat64V2 ¶ added in v1.1.36
func ToUInt64V2 ¶ added in v1.1.36
Types ¶
type FilterFunc ¶ added in v1.3.52
type IntegerType ¶ added in v1.3.40
type RecoverFunc ¶ added in v1.1.21
type RecoverFunc func(r any)
var DefRecoverFunc RecoverFunc = func(r any) {
}
Click to show internal directories.
Click to hide internal directories.