ars

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(a []any, c any) bool

Contains reports whether the c is contained in the slice a.

func ContainsByte

func ContainsByte(a []byte, c byte) bool

ContainsByte reports whether the c is contained in the slice a.

func ContainsFloat32

func ContainsFloat32(a []float32, c float32) bool

ContainsFloat32 reports whether the c is contained in the slice a.

func ContainsFloat64

func ContainsFloat64(a []float64, c float64) bool

ContainsFloat64 reports whether the c is contained in the slice a.

func ContainsInt

func ContainsInt(a []int, c int) bool

ContainsInt reports whether the c is contained in the slice a.

func ContainsInt16

func ContainsInt16(a []int16, c int16) bool

ContainsInt16 reports whether the c is contained in the slice a.

func ContainsInt32

func ContainsInt32(a []int32, c int32) bool

ContainsInt32 reports whether the c is contained in the slice a.

func ContainsInt64

func ContainsInt64(a []int64, c int64) bool

ContainsInt64 reports whether the c is contained in the slice a.

func ContainsInt8

func ContainsInt8(a []int8, c int8) bool

ContainsInt8 reports whether the c is contained in the slice a.

func ContainsOf

func ContainsOf[T any](a []T, c T) bool

ContainsOf reports whether the c is contained in the slice a.

func ContainsRune

func ContainsRune(a []rune, c rune) bool

ContainsRune reports whether the c is contained in the slice a.

func ContainsString

func ContainsString(a []string, c string) bool

ContainsString reports whether the c is contained in the slice a.

func ContainsUint

func ContainsUint(a []uint, c uint) bool

ContainsUint reports whether the c is contained in the slice a.

func ContainsUint16

func ContainsUint16(a []uint16, c uint16) bool

ContainsUint16 reports whether the c is contained in the slice a.

func ContainsUint32

func ContainsUint32(a []uint32, c uint32) bool

ContainsUint32 reports whether the c is contained in the slice a.

func ContainsUint64

func ContainsUint64(a []uint64, c uint64) bool

ContainsUint64 reports whether the c is contained in the slice a.

func ContainsUint8

func ContainsUint8(a []uint8, c uint8) bool

ContainsUint8 reports whether the c is contained in the slice a.

func Equal

func Equal(a []any, b []any) bool

Equal reports whether a and b are the same length and contain the same element. A nil argument is equivalent to an empty slice.

func EqualBytes

func EqualBytes(a []byte, b []byte) bool

EqualBytes reports whether a and b are the same length and contain the same element. A nil argument is equivalent to an empty slice.

func EqualFloat32s

func EqualFloat32s(a []float32, b []float32) bool

EqualFloat32s reports whether a and b are the same length and contain the same element. A nil argument is equivalent to an empty slice.

func EqualFloat64s

func EqualFloat64s(a []float64, b []float64) bool

EqualFloat64s reports whether a and b are the same length and contain the same element. A nil argument is equivalent to an empty slice.

func EqualInt16s

func EqualInt16s(a []int16, b []int16) bool

EqualInt16s reports whether a and b are the same length and contain the same element. A nil argument is equivalent to an empty slice.

func EqualInt32s

func EqualInt32s(a []int32, b []int32) bool

EqualInt32s reports whether a and b are the same length and contain the same element. A nil argument is equivalent to an empty slice.

func EqualInt64s

func EqualInt64s(a []int64, b []int64) bool

EqualInt64s reports whether a and b are the same length and contain the same element. A nil argument is equivalent to an empty slice.

func EqualInt8s

func EqualInt8s(a []int8, b []int8) bool

EqualInt8s reports whether a and b are the same length and contain the same element. A nil argument is equivalent to an empty slice.

func EqualInts

func EqualInts(a []int, b []int) bool

EqualInts reports whether a and b are the same length and contain the same element. A nil argument is equivalent to an empty slice.

func EqualOf

func EqualOf[T any](a []T, b []T) bool

EqualOf reports whether a and b are the same length and contain the same element. A nil argument is equivalent to an empty slice.

func EqualRunes

func EqualRunes(a []rune, b []rune) bool

EqualRunes reports whether a and b are the same length and contain the same element. A nil argument is equivalent to an empty slice.

func EqualStrings

func EqualStrings(a []string, b []string) bool

EqualStrings reports whether a and b are the same length and contain the same element. A nil argument is equivalent to an empty slice.

func EqualUint16s

func EqualUint16s(a []uint16, b []uint16) bool

EqualUint16s reports whether a and b are the same length and contain the same element. A nil argument is equivalent to an empty slice.

func EqualUint32s

func EqualUint32s(a []uint32, b []uint32) bool

EqualUint32s reports whether a and b are the same length and contain the same element. A nil argument is equivalent to an empty slice.

func EqualUint64s

func EqualUint64s(a []uint64, b []uint64) bool

EqualUint64s reports whether a and b are the same length and contain the same element. A nil argument is equivalent to an empty slice.

func EqualUint8s

func EqualUint8s(a []uint8, b []uint8) bool

EqualUint8s reports whether a and b are the same length and contain the same element. A nil argument is equivalent to an empty slice.

func EqualUints

func EqualUints(a []uint, b []uint) bool

EqualUints reports whether a and b are the same length and contain the same element. A nil argument is equivalent to an empty slice.

func Get

func Get(a []any, i int) (v any, ok bool)

Get get element at the specified index i.

func GetByte

func GetByte(a []byte, i int) (v byte, ok bool)

GetByte get element at the specified index i.

func GetFloat32

func GetFloat32(a []float32, i int) (v float32, ok bool)

GetFloat32 get element at the specified index i.

func GetFloat64

func GetFloat64(a []float64, i int) (v float64, ok bool)

GetFloat64 get element at the specified index i.

func GetInt

func GetInt(a []int, i int) (v int, ok bool)

GetInt get element at the specified index i.

func GetInt16

func GetInt16(a []int16, i int) (v int16, ok bool)

GetInt16 get element at the specified index i.

func GetInt32

func GetInt32(a []int32, i int) (v int32, ok bool)

GetInt32 get element at the specified index i.

func GetInt64

func GetInt64(a []int64, i int) (v int64, ok bool)

GetInt64 get element at the specified index i.

func GetInt8

func GetInt8(a []int8, i int) (v int8, ok bool)

GetInt8 get element at the specified index i.

func GetOf

func GetOf[T any](a []T, i int) (v T, ok bool)

GetOf get element at the specified index i.

func GetRune

func GetRune(a []rune, i int) (v rune, ok bool)

GetRune get element at the specified index i.

func GetString

func GetString(a []string, i int) (v string, ok bool)

GetString get element at the specified index i.

func GetUint

func GetUint(a []uint, i int) (v uint, ok bool)

GetUint get element at the specified index i.

func GetUint16

func GetUint16(a []uint16, i int) (v uint16, ok bool)

GetUint16 get element at the specified index i.

func GetUint32

func GetUint32(a []uint32, i int) (v uint32, ok bool)

GetUint32 get element at the specified index i.

func GetUint64

func GetUint64(a []uint64, i int) (v uint64, ok bool)

GetUint64 get element at the specified index i.

func GetUint8

func GetUint8(a []uint8, i int) (v uint8, ok bool)

GetUint8 get element at the specified index i.

func Index

func Index(a []any, c any) int

Index returns the index of the first instance of c in a, or -1 if c is not present in a.

func IndexByte

func IndexByte(a []byte, c byte) int

IndexByte returns the index of the first instance of c in a, or -1 if c is not present in a.

func IndexFloat32

func IndexFloat32(a []float32, c float32) int

IndexFloat32 returns the index of the first instance of c in a, or -1 if c is not present in a.

func IndexFloat64

func IndexFloat64(a []float64, c float64) int

IndexFloat64 returns the index of the first instance of c in a, or -1 if c is not present in a.

func IndexInt

func IndexInt(a []int, c int) int

IndexInt returns the index of the first instance of c in a, or -1 if c is not present in a.

func IndexInt16

func IndexInt16(a []int16, c int16) int

IndexInt16 returns the index of the first instance of c in a, or -1 if c is not present in a.

func IndexInt32

func IndexInt32(a []int32, c int32) int

IndexInt32 returns the index of the first instance of c in a, or -1 if c is not present in a.

func IndexInt64

func IndexInt64(a []int64, c int64) int

IndexInt64 returns the index of the first instance of c in a, or -1 if c is not present in a.

func IndexInt8

func IndexInt8(a []int8, c int8) int

IndexInt8 returns the index of the first instance of c in a, or -1 if c is not present in a.

func IndexOf

func IndexOf[T any](a []T, c T) int

IndexOf returns the index of the first instance of c in a, or -1 if c is not present in a.

func IndexRune

func IndexRune(a []rune, c rune) int

IndexRune returns the index of the first instance of c in a, or -1 if c is not present in a.

func IndexString

func IndexString(a []string, c string) int

IndexString returns the index of the first instance of c in a, or -1 if c is not present in a.

func IndexUint

func IndexUint(a []uint, c uint) int

IndexUint returns the index of the first instance of c in a, or -1 if c is not present in a.

func IndexUint16

func IndexUint16(a []uint16, c uint16) int

IndexUint16 returns the index of the first instance of c in a, or -1 if c is not present in a.

func IndexUint32

func IndexUint32(a []uint32, c uint32) int

IndexUint32 returns the index of the first instance of c in a, or -1 if c is not present in a.

func IndexUint64

func IndexUint64(a []uint64, c uint64) int

IndexUint64 returns the index of the first instance of c in a, or -1 if c is not present in a.

func IndexUint8

func IndexUint8(a []uint8, c uint8) int

IndexUint8 returns the index of the first instance of c in a, or -1 if c is not present in a.

func RemoveByte added in v1.0.9

func RemoveByte(a []byte, i int) []byte

RemoveByte remove the element at index i of array a.

func RemoveFloat32 added in v1.0.9

func RemoveFloat32(a []float32, i int) []float32

RemoveFloat32 remove the element at index i of array a.

func RemoveFloat64 added in v1.0.9

func RemoveFloat64(a []float64, i int) []float64

RemoveFloat64 remove the element at index i of array a.

func RemoveInt added in v1.0.9

func RemoveInt(a []int, i int) []int

RemoveInt remove the element at index i of array a.

func RemoveInt16 added in v1.0.9

func RemoveInt16(a []int16, i int) []int16

RemoveInt16 remove the element at index i of array a.

func RemoveInt32 added in v1.0.9

func RemoveInt32(a []int32, i int) []int32

RemoveInt32 remove the element at index i of array a.

func RemoveInt64 added in v1.0.9

func RemoveInt64(a []int64, i int) []int64

RemoveInt64 remove the element at index i of array a.

func RemoveInt8 added in v1.0.9

func RemoveInt8(a []int8, i int) []int8

RemoveInt8 remove the element at index i of array a.

func RemoveOf added in v1.0.9

func RemoveOf[T any](a []T, i int) []T

RemoveOf remove the element at index i of array a.

func RemoveRune added in v1.0.9

func RemoveRune(a []rune, i int) []rune

RemoveRune remove the element at index i of array a.

func RemoveString added in v1.0.9

func RemoveString(a []string, i int) []string

RemoveString remove the element at index i of array a.

func RemoveUint added in v1.0.9

func RemoveUint(a []uint, i int) []uint

RemoveUint remove the element at index i of array a.

func RemoveUint16 added in v1.0.9

func RemoveUint16(a []uint16, i int) []uint16

RemoveUint16 remove the element at index i of array a.

func RemoveUint64 added in v1.0.9

func RemoveUint64(a []uint64, i int) []uint64

RemoveUint64 remove the element at index i of array a.

func RemoveUint8 added in v1.0.9

func RemoveUint8(a []uint8, i int) []uint8

RemoveUint8 remove the element at index i of array a.

Types

This section is empty.

Jump to

Keyboard shortcuts

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