...

Package sliceutil

import "sigs.k8s.io/kustomize/kyaml/sliceutil"
Overview
Index

Overview ▾

func Contains

func Contains(s []string, e string) bool

Contains return true if string e is present in slice s

func Remove

func Remove(s []string, r string) []string

Remove removes the first occurrence of r in slice s and returns remaining slice