Documentation ¶
Index ¶
- func ExpandBuildProperties(props []string) ([]string, error)
- func Match(str string, substrings []string) bool
- func MatchAny(query string, arrayToMatch []string) bool
- func SanitizeName(origName string) string
- func SearchTermsFromQueryString(query string) []string
- func URLParse(rawURL string) (*url.URL, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandBuildProperties ¶
ExpandBuildProperties expands the build properties placeholders in the slice of properties.
func Match ¶
Match returns true if all substrings are contained in str. Both str and substrings are transforms to lower case and have their accents and other unicode diatrics removed. If strings transformation fails an error is returned.
func MatchAny ¶
MatchAny checks if query matches at least one of the string in arrayToMatch using the utils.Match function.
func SanitizeName ¶
SanitizeName replaces with underscores all chars that are not included in the ranges: 0-9, A-Z, a-z, "-" and "."
func SearchTermsFromQueryString ¶
SearchTermsFromQueryString returns the terms inside the query string. All non alphanumeric characters (expect ':') are considered separators. All search terms are converted to lowercase.
Types ¶
This section is empty.