Documentation
¶
Index ¶
- func AddAll(arrays ...interface{}) ([]interface{}, error)
- func Clone(arr interface{}) (interface{}, error)
- func Contains(arr interface{}, elem interface{}) (bool, error)
- func Edit(arr interface{}, editFunc func(interface{}) interface{}) (interface{}, error)
- func Filter(arr interface{}, filterFunc func(interface{}) bool) ([]interface{}, error)
- func IsArray(arr interface{}) bool
- func IsEmpty(arr interface{}) (bool, error)
- func IsNotEmpty(arr interface{}) (bool, error)
- func NewArray(elementType reflect.Type, size int) interface{}
- func Print(arr interface{}) error
- func Range(start, end, step int) []int
- func Resize(arr interface{}, newSize int) (interface{}, error)
- func Split(data []byte, chunkSize int) [][]byte
- func ToString(arr interface{}, sep string) (string, error)
- func Unwrap(arr []interface{}, elemType reflect.Type) (interface{}, error)
- func Wrap(arr interface{}) ([]interface{}, error)
- func Zip(keys, values interface{}) (map[interface{}]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Edit ¶
func Edit(arr interface{}, editFunc func(interface{}) interface{}) (interface{}, error)
Edit 编辑切片中的元素
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.