package sliceutil
import "github.com/bitrise-io/go-utils/sliceutil"
Index ¶
- func CleanWhitespace(list []string, omitEmpty bool) (items []string)
- func IndexOfStringInSlice(searchFor string, searchIn []string) int
- func IsStringInSlice(searchFor string, searchIn []string) bool
- func UniqueStringSlice(strs []string) []string
Functions ¶
func CleanWhitespace ¶
CleanWhitespace removes leading and trailing white space from each element of the input slice. Elements that end up as empty strings are excluded from the result depending on the value of the omitEmpty flag.
func IndexOfStringInSlice ¶
IndexOfStringInSlice ...
func IsStringInSlice ¶
IsStringInSlice ...
func UniqueStringSlice ¶
UniqueStringSlice - returns a cleaned up list, where every item is unique. Does NOT guarantee any ordering, the result can be in any order!
Source Files ¶
- Version
- v1.0.15 (latest)
- Published
- May 13, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 2 months ago –
Tools for package owners.