slice

package
v0.0.76 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(slice []string, val string, opts ...withOptsFunc) bool

Contains returns true if the slice contains the value.

func ContainsAny

func ContainsAny(slice []string, val ...string) bool

ContainsAny returns true if the slice contain any of the values [val].

func Omit

func Omit(slice []string, val ...string) []string

Omit returns a new slice with the values [val] omitted.

func WithCaseInsensitive

func WithCaseInsensitive() withOptsFunc

WithCaseInsensitive will make the contains functions case insensitive.

Types

This section is empty.

Jump to

Keyboard shortcuts

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