slice

package
v1.6.65 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package slice provides utility functions for slices

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(slice []string, val string) bool

Contains returns true if the given slice contains the given string

func StartsWithAnyOf added in v1.4.0

func StartsWithAnyOf(prefixes []string, candidate string) bool

StartsWithAnyOf returns true if the given slice starts with any of the given prefixes

Types

This section is empty.

Jump to

Keyboard shortcuts

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