slice

package
v0.65.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Overview

Package slice contains some utility functions to work with slices

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCommaSeparatedList added in v0.59.0

func ParseCommaSeparatedList(list string) []string

func SliceDifference

func SliceDifference[T comparable](a, b []T) []T

SliceDifference returns the elements in `a` that aren't in `b`.

func StringSliceDifference

func StringSliceDifference(a, b []string, caseSensitive bool) []string

StringSliceDifference returns the elements in `a` that aren't in `b`.

func StringSliceMerge added in v0.15.0

func StringSliceMerge(slices ...[]string) []string

StringSliceMerge merges multiple slices of strings together and removes duplicates

Types

This section is empty.

Jump to

Keyboard shortcuts

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