package
3.9.5
Repository: https://github.com/jenkins-x/jx-helpers.git
Documentation: pkg.go.dev

# Functions

CheckMark returns the check mark unicode character.
DiffSlices compares the two slices and returns an array of items to delete from the old slice and a slice of new values to add to.
EnsureStringArrayContains appends token to slice if token isn't already in slice.
ExtractKeyValuePairs creates a map of an string array assuming that each array element is of the form <key><sep><value>.
FirstNotEmptyString returns the first non empty string or the empty string if none can be found.
HasPrefix returns true if the given string has one of the prefixes.
HasSuffix returns true if the given string has one of the suffixes.
IsValidUrl tests a string to determine if it is a well-structured url or not.
ParseBool parses the boolean string.
RandStringBytesMaskImprSrc returns a random hexadecimal string of length n.
RegexpSplit splits a string into an array using the regexSep as a separator.
RemoveStringFromSlice removes the first occurrence of the specified string from a slice, if it exists and returns the result.
ReplaceAllStringSubmatchFunc will replace all the submatches found in str by re by calling repl and replacing each submatch with the result.
No description provided by the author
SanitizeURL sanitizes by stripping the user and password.
SortedMapKeys returns the sorted keys of the given map.
StringArrayHasPrefixIndex returns the index in the slice which the value has the given prefix.
StringArrayIndex returns the index in the slice which equals the given value.
StringArraysEqual returns true if the two string slices are equal.
StringArrayToLower returns a string slice with all the values converted to lower case.
StringContainsAny returns true if the given text contains the includes/excludes lists.
StringIndexes returns all the indices where the value occurs in the given string.
StringMatchesAny returns true if the given text matches the includes/excludes lists.
StringMatchesPattern returns true if the given text matches the includes/excludes lists.
StringsContaining if the filter is not empty return all the strings which contain the text.
StripTrailingSlash removes any trailing forward slashes on the URL.
ToCamelCase turn "my-super-name" into "MySuperName" Usefule for creating valid go-template variable names.
UrlEqual verifies if URLs are equal.
UrlHostNameWithoutPort returns the host name without any port of the given URL like string.
UrlJoin joins the given paths so that there is only ever one '/' character between the paths.
URLSetUserPassword adds the user and password to the URL.
URLToHostName converts the given URL to a host name returning the error string if its not a URL.
YesNo returns a Yes/No conversion for a boolean parameter.

# Variables

DisallowedLabelCharacters regex of chars not allowed in lables.

# Structs

Group is a submatch group.