Documentation ¶
Index ¶
- func Defined(data interface{}, field string) bool
- func Dict(values ...interface{}) (map[string]interface{}, error)
- func ElementsTo[T EleType](c []T) []interface{}
- func ExcludeElement[T EleType](all []T, src ...T) []T
- func FilterElement[T EleType](all []T, cb FilterFunc[T]) []T
- func FindElement[T EleType](all []T, src T) bool
- func IncludeElement[T EleType](all []T, src ...T) []T
- func IsBit[T BitType](v T, b T) bool
- func IsMap(o interface{}) bool
- func IsNil(o interface{}) bool
- func IsNilReflect(v reflect.Value) bool
- func IsSlice(o interface{}) bool
- func RemoveDuplicateElement[T EleType](values []T) []T
- func RemoveElement[T EleType](all []T, src T) []T
- func ReverseElement[T ReverseType](rs []T) []T
- func SliceToInt(arr []any) []int
- func SliceToInt64(arr []any) []int64
- func ToFloat64(value interface{}) float64
- func ToFloat64V2(reflectValue reflect.Value) float64
- func ToInt[T IntegerType](arr []any) []T
- func ToInt64(value interface{}) int64
- func ToInt64V2(reflectValue reflect.Value) int64
- func ToUInt64(value interface{}) uint64
- func ToUInt64V2(reflectValue reflect.Value) uint64
- func WhereInt[T IntegerType](arr []any, where func(a any) (T, bool)) []T
- type Bit
- type BitType
- type EleType
- type FilterFunc
- type Flag
- type IntegerType
- type Range
- type ReverseType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ElementsTo ¶ added in v1.8.48
func ElementsTo[T EleType](c []T) []interface{}
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 FindElement ¶ added in v1.3.54
func IncludeElement ¶ added in v1.3.52
func IncludeElement[T EleType](all []T, src ...T) []T
IncludeElement 包含 找src在all
func IsNilReflect ¶ added in v1.20.11
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 ReverseElement ¶ added in v1.5.7
func ReverseElement[T ReverseType](rs []T) []T
func SliceToInt ¶ added in v1.8.6
func SliceToInt64 ¶ added in v1.8.6
func ToFloat64V2 ¶ added in v1.1.36
func ToInt ¶ added in v1.21.5
func ToInt[T IntegerType](arr []any) []T
func ToUInt64V2 ¶ added in v1.1.36
Types ¶
type FilterFunc ¶ added in v1.3.52
type IntegerType ¶ added in v1.3.40
type Range ¶ added in v1.21.5
type Range[T IntegerType] struct { Op string // "GT","GTE","LT","LTE","BET" Min T Max T }
Range 范围
Directories ¶
Path | Synopsis |
---|---|
gzip
Package gzip implements the Archive interface providing gz archiving and compression.
|
Package gzip implements the Archive interface providing gz archiving and compression. |
tar
Package tar implements the Archive interface providing tar archiving.
|
Package tar implements the Archive interface providing tar archiving. |
targz
Package targz implements the Archive interface providing tar.gz archiving and compression.
|
Package targz implements the Archive interface providing tar.gz archiving and compression. |
tarxz
Package tarxz implements the Archive interface providing tar.xz archiving and compression.
|
Package tarxz implements the Archive interface providing tar.xz archiving and compression. |
zip
Package zip implements the Archive interface providing zip archiving and compression.
|
Package zip implements the Archive interface providing zip archiving and compression. |
alyoss
*
|
* |
Click to show internal directories.
Click to hide internal directories.