Help us shape the future of Go! Take the 2026 Go Developer Survey

slice

package
v1.0.246 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 1 Imported by: 2

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