Documentation ¶
Index ¶
- func Contains(a []any, c any) bool
- func ContainsByte(a []byte, c byte) bool
- func ContainsFloat32(a []float32, c float32) bool
- func ContainsFloat64(a []float64, c float64) bool
- func ContainsInt(a []int, c int) bool
- func ContainsInt16(a []int16, c int16) bool
- func ContainsInt32(a []int32, c int32) bool
- func ContainsInt64(a []int64, c int64) bool
- func ContainsInt8(a []int8, c int8) bool
- func ContainsOf[T any](a []T, c T) bool
- func ContainsRune(a []rune, c rune) bool
- func ContainsString(a []string, c string) bool
- func ContainsUint(a []uint, c uint) bool
- func ContainsUint16(a []uint16, c uint16) bool
- func ContainsUint32(a []uint32, c uint32) bool
- func ContainsUint64(a []uint64, c uint64) bool
- func ContainsUint8(a []uint8, c uint8) bool
- func Equal(a []any, b []any) bool
- func EqualBytes(a []byte, b []byte) bool
- func EqualFloat32s(a []float32, b []float32) bool
- func EqualFloat64s(a []float64, b []float64) bool
- func EqualInt16s(a []int16, b []int16) bool
- func EqualInt32s(a []int32, b []int32) bool
- func EqualInt64s(a []int64, b []int64) bool
- func EqualInt8s(a []int8, b []int8) bool
- func EqualInts(a []int, b []int) bool
- func EqualOf[T any](a []T, b []T) bool
- func EqualRunes(a []rune, b []rune) bool
- func EqualStrings(a []string, b []string) bool
- func EqualUint16s(a []uint16, b []uint16) bool
- func EqualUint32s(a []uint32, b []uint32) bool
- func EqualUint64s(a []uint64, b []uint64) bool
- func EqualUint8s(a []uint8, b []uint8) bool
- func EqualUints(a []uint, b []uint) bool
- func Get(a []any, i int) (v any, ok bool)
- func GetByte(a []byte, i int) (v byte, ok bool)
- func GetFloat32(a []float32, i int) (v float32, ok bool)
- func GetFloat64(a []float64, i int) (v float64, ok bool)
- func GetInt(a []int, i int) (v int, ok bool)
- func GetInt16(a []int16, i int) (v int16, ok bool)
- func GetInt32(a []int32, i int) (v int32, ok bool)
- func GetInt64(a []int64, i int) (v int64, ok bool)
- func GetInt8(a []int8, i int) (v int8, ok bool)
- func GetOf[T any](a []T, i int) (v T, ok bool)
- func GetRune(a []rune, i int) (v rune, ok bool)
- func GetString(a []string, i int) (v string, ok bool)
- func GetUint(a []uint, i int) (v uint, ok bool)
- func GetUint16(a []uint16, i int) (v uint16, ok bool)
- func GetUint32(a []uint32, i int) (v uint32, ok bool)
- func GetUint64(a []uint64, i int) (v uint64, ok bool)
- func GetUint8(a []uint8, i int) (v uint8, ok bool)
- func Index(a []any, c any) int
- func IndexByte(a []byte, c byte) int
- func IndexFloat32(a []float32, c float32) int
- func IndexFloat64(a []float64, c float64) int
- func IndexInt(a []int, c int) int
- func IndexInt16(a []int16, c int16) int
- func IndexInt32(a []int32, c int32) int
- func IndexInt64(a []int64, c int64) int
- func IndexInt8(a []int8, c int8) int
- func IndexOf[T any](a []T, c T) int
- func IndexRune(a []rune, c rune) int
- func IndexString(a []string, c string) int
- func IndexUint(a []uint, c uint) int
- func IndexUint16(a []uint16, c uint16) int
- func IndexUint32(a []uint32, c uint32) int
- func IndexUint64(a []uint64, c uint64) int
- func IndexUint8(a []uint8, c uint8) int
- func RemoveByte(a []byte, i int) []byte
- func RemoveFloat32(a []float32, i int) []float32
- func RemoveFloat64(a []float64, i int) []float64
- func RemoveInt(a []int, i int) []int
- func RemoveInt16(a []int16, i int) []int16
- func RemoveInt32(a []int32, i int) []int32
- func RemoveInt64(a []int64, i int) []int64
- func RemoveInt8(a []int8, i int) []int8
- func RemoveOf[T any](a []T, i int) []T
- func RemoveRune(a []rune, i int) []rune
- func RemoveString(a []string, i int) []string
- func RemoveUint(a []uint, i int) []uint
- func RemoveUint16(a []uint16, i int) []uint16
- func RemoveUint64(a []uint64, i int) []uint64
- func RemoveUint8(a []uint8, i int) []uint8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsByte ¶
ContainsByte reports whether the c is contained in the slice a.
func ContainsFloat32 ¶
ContainsFloat32 reports whether the c is contained in the slice a.
func ContainsFloat64 ¶
ContainsFloat64 reports whether the c is contained in the slice a.
func ContainsInt ¶
ContainsInt reports whether the c is contained in the slice a.
func ContainsInt16 ¶
ContainsInt16 reports whether the c is contained in the slice a.
func ContainsInt32 ¶
ContainsInt32 reports whether the c is contained in the slice a.
func ContainsInt64 ¶
ContainsInt64 reports whether the c is contained in the slice a.
func ContainsInt8 ¶
ContainsInt8 reports whether the c is contained in the slice a.
func ContainsOf ¶
ContainsOf reports whether the c is contained in the slice a.
func ContainsRune ¶
ContainsRune reports whether the c is contained in the slice a.
func ContainsString ¶
ContainsString reports whether the c is contained in the slice a.
func ContainsUint ¶
ContainsUint reports whether the c is contained in the slice a.
func ContainsUint16 ¶
ContainsUint16 reports whether the c is contained in the slice a.
func ContainsUint32 ¶
ContainsUint32 reports whether the c is contained in the slice a.
func ContainsUint64 ¶
ContainsUint64 reports whether the c is contained in the slice a.
func ContainsUint8 ¶
ContainsUint8 reports whether the c is contained in the slice a.
func Equal ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 GetFloat32 ¶
GetFloat32 get element at the specified index i.
func GetFloat64 ¶
GetFloat64 get element at the specified index i.
func Index ¶
Index returns the index of the first instance of c in a, or -1 if c is not present in a.
func IndexByte ¶
IndexByte returns the index of the first instance of c in a, or -1 if c is not present in a.
func IndexFloat32 ¶
IndexFloat32 returns the index of the first instance of c in a, or -1 if c is not present in a.
func IndexFloat64 ¶
IndexFloat64 returns the index of the first instance of c in a, or -1 if c is not present in a.
func IndexInt ¶
IndexInt returns the index of the first instance of c in a, or -1 if c is not present in a.
func IndexInt16 ¶
IndexInt16 returns the index of the first instance of c in a, or -1 if c is not present in a.
func IndexInt32 ¶
IndexInt32 returns the index of the first instance of c in a, or -1 if c is not present in a.
func IndexInt64 ¶
IndexInt64 returns the index of the first instance of c in a, or -1 if c is not present in a.
func IndexInt8 ¶
IndexInt8 returns the index of the first instance of c in a, or -1 if c is not present in a.
func IndexOf ¶
IndexOf returns the index of the first instance of c in a, or -1 if c is not present in a.
func IndexRune ¶
IndexRune returns the index of the first instance of c in a, or -1 if c is not present in a.
func IndexString ¶
IndexString returns the index of the first instance of c in a, or -1 if c is not present in a.
func IndexUint ¶
IndexUint returns the index of the first instance of c in a, or -1 if c is not present in a.
func IndexUint16 ¶
IndexUint16 returns the index of the first instance of c in a, or -1 if c is not present in a.
func IndexUint32 ¶
IndexUint32 returns the index of the first instance of c in a, or -1 if c is not present in a.
func IndexUint64 ¶
IndexUint64 returns the index of the first instance of c in a, or -1 if c is not present in a.
func IndexUint8 ¶
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
RemoveByte remove the element at index i of array a.
func RemoveFloat32 ¶ added in v1.0.9
RemoveFloat32 remove the element at index i of array a.
func RemoveFloat64 ¶ added in v1.0.9
RemoveFloat64 remove the element at index i of array a.
func RemoveInt16 ¶ added in v1.0.9
RemoveInt16 remove the element at index i of array a.
func RemoveInt32 ¶ added in v1.0.9
RemoveInt32 remove the element at index i of array a.
func RemoveInt64 ¶ added in v1.0.9
RemoveInt64 remove the element at index i of array a.
func RemoveInt8 ¶ added in v1.0.9
RemoveInt8 remove the element at index i of array a.
func RemoveRune ¶ added in v1.0.9
RemoveRune remove the element at index i of array a.
func RemoveString ¶ added in v1.0.9
RemoveString remove the element at index i of array a.
func RemoveUint ¶ added in v1.0.9
RemoveUint remove the element at index i of array a.
func RemoveUint16 ¶ added in v1.0.9
RemoveUint16 remove the element at index i of array a.
func RemoveUint64 ¶ added in v1.0.9
RemoveUint64 remove the element at index i of array a.
func RemoveUint8 ¶ added in v1.0.9
RemoveUint8 remove the element at index i of array a.
Types ¶
This section is empty.