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 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 []interface{}) []int
- func SliceToInt64(arr []interface{}) []int64
- 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 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 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 SliceToInt(arr []interface{}) []int
func SliceToInt64 ¶ added in v1.8.6
func SliceToInt64(arr []interface{}) []int64
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
Directories ¶
Path | Synopsis |
---|---|
Package archive provides tar.gz and zip archiving
|
Package archive provides tar.gz and zip archiving |
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.