slice

package
v4.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsAnyString

func ContainsAnyString(s []string, matches []string) bool

ContainsAnyString returns true if string slice s contains any of matches

func ContainsInt

func ContainsInt(s []int, match int) bool

ContainsInt returns true if int slice s contains match

func ContainsString

func ContainsString(s []string, match string) bool

ContainsString returns true if string slice s contains match

func Subtract

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

Subtract removes items in slice b from slice a, returning the result. Implemented using a map for greater efficiency than lo.Difference / lo.Without, when operating on large slices.

Types

This section is empty.

Jump to

Keyboard shortcuts

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