slice

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package slice provides utility methods for common operations on slices. The implementation is entirely lifted from https://github.com/kubernetes/kubernetes in order to not pull in the whole kubernetes repo for a utility.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendUnique added in v0.18.0

func AppendUnique(slice []string, args ...string) []string

AppendUnique appends the arguments to the slice, but only if it does not exist in the slice.

func ContainsString

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

ContainsString checks if a given slice of strings contains the provided string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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