Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Expression ¶
Expression will expand the expression specified by expr and will perform parameter expansion on each sub-expression. The mappingFunc is used to lookup variables. If the mappingFunc returns an empty string for a variable the expression will evaluate to the empty string.
func Opportunistic ¶
Opportunistic will opportunistically expand the expression specified by expr and will perform parameter expansion on each sub-expression. The mappingFunc is used to lookup variables. If the mappingFunc returns an empty string for a variable then the unmodified input expression is returned.
func Variable ¶
Variable will expand the contents of the variable. If the specified variable is immediately followed by [<sep><start>:<end>] then it is split by the sep character, and then the components from start to end are joined. For example, [/2:-1] will remove the first two and last pathname components.
Types ¶
This section is empty.