Documentation ¶
Index ¶
- func Add(s []int, v int) []int
- func CreateAnyTypeSlice(slice interface{}) ([]interface{}, bool)
- func DeleteSliceE(slice interface{}, index int) (interface{}, error)
- func GetEleIndexesSliceE(slice interface{}, value interface{}) ([]int, error)
- func InsertSliceE(slice interface{}, index int, value interface{}) (interface{}, error)
- func IsSlice(arg interface{}) (val reflect.Value, ok bool)
- func RemoveAt(s []int, index int) []int
- func Sum(s ...int) int
- func UpdateSliceE(slice interface{}, index int, value interface{}) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAnyTypeSlice ¶
func CreateAnyTypeSlice(slice interface{}) ([]interface{}, bool)
CreateAnyTypeSlice 创建可接收任意类型的切片
func DeleteSliceE ¶
DeleteSliceE deletes the specified subscript element from the slice Note that original slice will not be modified
func GetEleIndexesSliceE ¶
GetEleIndexesSliceE finds all indexes of the specified element in a slice
func InsertSliceE ¶
InsertSliceE insert a element to slice in the specified index Note that original slice will not be modified
func UpdateSliceE ¶
UpdateSliceE modifies the specified index element of slice Note that original slice will not be modified
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.