package strutils
import "github.com/hashicorp/cap/oidc/internal/strutils"
Index ¶
- func RemoveDuplicatesStable(items []string, caseInsensitive bool) []string
- func StrListContains(haystack []string, needle string) bool
Functions ¶
func RemoveDuplicatesStable ¶
RemoveDuplicatesStable removes duplicate and empty elements from a slice of strings, preserving order (and case) of the original slice. In all cases, strings are compared after trimming whitespace If caseInsensitive, strings will be compared after ToLower()
func StrListContains ¶
StrListContains looks for a string in a list of strings.
Source Files ¶
- Version
- v0.9.0 (latest)
- Published
- Feb 28, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 2 months ago –
Tools for package owners.