Documentation
¶
Overview ¶
Package moustache implements pkgx's `{{token}}` template substitution, a faithful port of libpkgx's useMoustaches. Build and test scripts, env values and fixtures are expanded with it before they run.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply substitutes every token in input. The pattern mirrors libpkgx exactly: `(^\$)?{{\s*<from>\s*}}` — optional surrounding whitespace, and a single leading `$` (at the very start) is consumed so `${{prefix}}` yields the value without the dollar. Replacement is literal (a To containing `$` is safe).
Types ¶
type Token ¶
type Token struct{ From, To string }
Token is a single substitution: every `{{ From }}` becomes To.
Click to show internal directories.
Click to hide internal directories.