slice_utils

package
v1.206.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArraySlice added in v1.113.0

func ArraySlice(s []any, offset, length int) []any

func ElementExists

func ElementExists(in interface{}, elem interface{}) (bool, int)

func FilterNonEmptyString

func FilterNonEmptyString(arr []string) []string

func FilterNonZero

func FilterNonZero(arr []int64) []int64

func Intersection

func Intersection(a, b []int64) (c []int64)

Intersection Finds the intersection between two integer arrays

func MinimumFloat64

func MinimumFloat64(values []float64) (min float64)

func RemoveStringAtIndex

func RemoveStringAtIndex(s []string, index int) []string

func SlicePointersToSlice added in v1.201.0

func SlicePointersToSlice[V any](s []*V) []V

func SliceToSlicePointers added in v1.201.0

func SliceToSlicePointers[V any](s []V) []*V

Types

This section is empty.

Jump to

Keyboard shortcuts

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