array

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package array provides functionality for measuring and displaying array more efficiently.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStringsEqual added in v1.0.0

func IsStringsEqual(arr1 []string, arr2 []string) bool

IsStringsEqual return bool means the two arrays are equal or not.

func SearchInt added in v1.0.1

func SearchInt(arr []int, value int) int

SearchInt search the value in the int array and return index or return -1.

func SearchInt16 added in v1.0.1

func SearchInt16(arr []int16, value int16) int

SearchInt16 search the value in the int16 array and return index or return -1.

func SearchInt32 added in v1.0.1

func SearchInt32(arr []int32, value int32) int

SearchInt32 search the value in the int32 array and return index or return -1.

func SearchInt64 added in v1.0.1

func SearchInt64(arr []int64, value int64) int

SearchInt64 search the value in the int64 array and return index or return -1.

func SearchInt8 added in v1.0.1

func SearchInt8(arr []int8, value int8) int

SearchInt8 search the value in the int8 array and return index or return -1.

func SearchString added in v1.0.1

func SearchString(arr []string, value string) int

SearchString search the value in the string array and return index or return -1.

func SearchUInt added in v1.0.1

func SearchUInt(arr []uint, value uint) int

SearchUInt search the value in the int array and return index or return -1.

func SearchUInt16 added in v1.0.1

func SearchUInt16(arr []uint16, value uint16) int

SearchUInt16 search the value in the uint16 array and return index or return -1.

func SearchUInt32 added in v1.0.1

func SearchUInt32(arr []uint32, value uint32) int

SearchUInt32 search the value in the uint32 array and return index or return -1.

func SearchUInt64 added in v1.0.1

func SearchUInt64(arr []uint64, value uint64) int

SearchUInt64 search the value in the uint64 array and return index or return -1.

func SearchUInt8 added in v1.0.1

func SearchUInt8(arr []uint8, value uint8) int

SearchUInt8 search the value in the uint8 array and return index or return -1.

func ShuffleInt16Slice added in v1.0.1

func ShuffleInt16Slice(s []int16)

ShuffleInt16Slice shuffle an int16 slice randomly.

func ShuffleInt32Slice added in v1.0.1

func ShuffleInt32Slice(s []int32)

ShuffleInt32Slice shuffle an int32 slice randomly.

func ShuffleInt64Slice added in v1.0.1

func ShuffleInt64Slice(s []int64)

ShuffleInt64Slice shuffle an int64 slice randomly.

func ShuffleInt8Slice added in v1.0.1

func ShuffleInt8Slice(s []int8)

ShuffleInt8Slice shuffle an int8 slice randomly.

func ShuffleIntSlice added in v1.0.1

func ShuffleIntSlice(s []int)

ShuffleIntSlice shuffle an int slice randomly.

func ShuffleUInt16Slice added in v1.0.1

func ShuffleUInt16Slice(s []uint16)

ShuffleUInt16Slice shuffle an uint16 slice randomly.

func ShuffleUInt32Slice added in v1.0.1

func ShuffleUInt32Slice(s []uint32)

ShuffleUInt32Slice shuffle an uint32 slice randomly.

func ShuffleUInt64Slice added in v1.0.1

func ShuffleUInt64Slice(s []uint64)

ShuffleUInt64Slice shuffle an uint64 slice randomly.

func ShuffleUInt8Slice added in v1.0.1

func ShuffleUInt8Slice(s []uint8)

ShuffleUInt8Slice shuffle an uint8 slice randomly.

func ShuffleUIntSlice added in v1.0.1

func ShuffleUIntSlice(s []uint)

ShuffleUIntSlice shuffle an uint slice randomly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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