Documentation ¶
Index ¶
- func EscapeTemplatedString(s string, escapeFn func(string) string) string
- func EscapeTemplatedStringList(list []string, escapeFn func(string) string) []string
- func MakefileAndShellEscape(s string) string
- func MakefileAndShellEscapeList(list []string) []string
- func MakefileEscape(s string) string
- func MakefileEscapeList(list []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeTemplatedString ¶
Escape a string which may contain Go templates.
The content of the template is not escaped.
This function is only useful where the template output is not expected to be escaped. If the template output needs escaping too, then expand the template before escaping instead.
The new escaped string is returned.
func EscapeTemplatedStringList ¶
Escape a string which may contain Go templates.
A new slice containing the escaped strings is returned.
func MakefileAndShellEscape ¶
Escape characters that are special to either Make or the shell.
The new escaped string is returned.
func MakefileAndShellEscapeList ¶
Escape characters that are special to either Make or the shell.
A new slice containing the escaped strings is returned.
func MakefileEscape ¶
Escape characters in a string that Make may interpret in recipes (as part of the rule context).
Ocurrences of $ need to be escaped as $$. The new escaped string is returned.
func MakefileEscapeList ¶
Escape characters in a list of strings that Make may interpret in recipes (as part of the rule context).
A new slice containing the escaped strings is returned.
Types ¶
This section is empty.