slice

package
v0.33.0-dev0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 1 Imported by: 3

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 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