strings
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¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcJoinWithConjunction¶
JoinWithConjunction joins a slice of strings with commas except for the lasttwo which are joined with "and".
funcUISanitize¶added inv2.25.0
UISanitize sanitizes a string for display in the UI.The following transformations are applied, in order:- HTML tags are removed using bluemonday's strict policy.- ANSI escape codes are stripped using stripansi.- Consecutive backslashes are replaced with a single backslash.- Non-printable characters are removed.- Whitespace characters are replaced with spaces.- Multiple spaces are collapsed into a single space.- Leading and trailing whitespace is trimmed.
Types¶
This section is empty.