Documentation
¶
Index ¶
- func ContainsExpansion(value string) bool
- func ContainsTemplate(value string) bool
- func EvalRaw(raw string, env Env) (string, bool, error)
- func EvalString(raw string, env Env) (string, error)
- func ReadExpansion(raw string, start int) (string, int, bool)
- func ReadSingleQuotedEscape(raw string, start int) (string, int, error)
- func ReadStringEscape(raw string, start int) (string, int, error)
- type Env
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsExpansion ¶
ContainsExpansion reports whether a string contains a shell expression whose value depends on runtime environment.
func ContainsTemplate ¶
ContainsTemplate reports whether a double-quoted string can produce a different runtime value after shell-style expansion.
func EvalString ¶
EvalString evaluates shell substitutions inside a string.
func ReadExpansion ¶
ReadExpansion reads one shell expansion starting at start.
func ReadSingleQuotedEscape ¶
ReadSingleQuotedEscape reads a backslash escape in a single-quoted shell fallback string.
Types ¶
Click to show internal directories.
Click to hide internal directories.