utils
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
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¶
funcExpandBuildProperties¶
ExpandBuildProperties expands the build properties placeholders in the slice of properties.
funcMatch¶
Match returns true if all substrings are contained in str.Both str and substrings are transforms to lower case and have theiraccents and other unicode diatrics removed.If strings transformation fails an error is returned.
funcMatchAny¶
MatchAny checks if query matches at least one of thestring in arrayToMatch using the utils.Match function.
funcSanitizeName¶
SanitizeName replaces with underscores all chars that are not includedin the ranges: 0-9, A-Z, a-z, "-" and "."
funcSearchTermsFromQueryString¶
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.