array

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SearchFloat32s added in v1.1.3

func SearchFloat32s(list []float32, str float32) int

SearchFloat32s 搜索切片

func SearchFloat64s added in v1.1.3

func SearchFloat64s(list []float64, str float64) int

SearchFloat64s 搜索切片

func SearchInterfaces added in v1.1.3

func SearchInterfaces(list []interface{}, str interface{}) int

SearchInterfaces 搜索切片

func SearchInts added in v1.1.3

func SearchInts(list []int, str int) int

SearchInts 搜索切片

func SearchStrings added in v1.1.3

func SearchStrings(list []string, str string) int

SearchStrings 搜索切片

Types

type Array

type Array struct {
	Slice []interface{}
	// contains filtered or unexported fields
}

Array parameter structure

func New

func New() *Array

New Array

func (*Array) Append

func (get *Array) Append(value interface{})

Append Set Array

func (*Array) Clear

func (get *Array) Clear()

Clear Array

func (*Array) Delete

func (get *Array) Delete(index int) []interface{}

Delete Array

func (*Array) Get

func (get *Array) Get(index int) interface{}

Get Array

func (*Array) InsertAfter

func (get *Array) InsertAfter(index int, value interface{}) []interface{}

InsertAfter Array

func (*Array) Len

func (get *Array) Len() int

Len Count Array

func (*Array) List

func (get *Array) List() []interface{}

List Array

func (*Array) LockFunc

func (get *Array) LockFunc(f func(array []interface{})) *Array

LockFunc locks writing by callback function <f>

func (*Array) ReadLockFunc

func (get *Array) ReadLockFunc(f func(array []interface{})) *Array

ReadLockFunc locks writing by callback function <f>

func (*Array) Search

func (get *Array) Search(value interface{}) int

Search Array

func (*Array) Set

func (get *Array) Set(index int, value interface{})

Set Array

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL