Documentation ¶
Index ¶
- func SearchFloat32s(list []float32, str float32) int
- func SearchFloat64s(list []float64, str float64) int
- func SearchInterfaces(list []interface{}, str interface{}) int
- func SearchInts(list []int, str int) int
- func SearchStrings(list []string, str string) int
- type Array
- func (get *Array) Append(value interface{})
- func (get *Array) Clear()
- func (get *Array) Delete(index int) []interface{}
- func (get *Array) Get(index int) interface{}
- func (get *Array) InsertAfter(index int, value interface{}) []interface{}
- func (get *Array) Len() int
- func (get *Array) List() []interface{}
- func (get *Array) LockFunc(f func(array []interface{})) *Array
- func (get *Array) ReadLockFunc(f func(array []interface{})) *Array
- func (get *Array) Search(value interface{}) int
- func (get *Array) Set(index int, value interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SearchFloat32s ¶ added in v1.1.3
SearchFloat32s 搜索切片
func SearchFloat64s ¶ added in v1.1.3
SearchFloat64s 搜索切片
func SearchInterfaces ¶ added in v1.1.3
func SearchInterfaces(list []interface{}, str interface{}) int
SearchInterfaces 搜索切片
func SearchStrings ¶ added in v1.1.3
SearchStrings 搜索切片
Types ¶
type Array ¶
type Array struct { Slice []interface{} // contains filtered or unexported fields }
Array parameter structure
func (*Array) InsertAfter ¶
InsertAfter Array
func (*Array) ReadLockFunc ¶
ReadLockFunc locks writing by callback function <f>
Click to show internal directories.
Click to hide internal directories.