Documentation ¶
Overview ¶
Package replacer provides a Replacer interface that replaces a string with a new string.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Replacer ¶
Replacer is an interface that replaces a string with a new string.
func NewFuncReplacer ¶
func NewFuncReplacer() Replacer
NewFuncReplacer returns a Replacer that replaces the following functions: - unix() -> unix timestamp - unixNano() -> unix timestamp in nanoseconds every function definition is replaced with a dynamic value at run time.
func NewMapReplacer ¶
NewMapReplacer returns a Replacer that replaces the following variables. - ${key} -> value every variable definition is replaced with a static value at run time.
Click to show internal directories.
Click to hide internal directories.