Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UnixEscape = regexp.MustCompile(`[^\w!%+,\-./:=@^]`)
Functions ¶
func ShellArgsString ¶
func ShellString ¶
func Unix ¶ added in v2.20.0
Unix checks if the give string contains characters that have special meaning for a shell. If it does, it will be quoted using single quotes. If the string itself contains single quotes, then the string is split on single quotes, each single quote is escaped and each segment between the escaped single quotes is quoted separately.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.