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
AppendUnique appends the arguments to the slice, but only if it does not exist in the slice.
func ContainsString ¶
ContainsString checks if a given slice of strings contains the provided string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.