Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Replacer ¶
type Replacer interface {
// Replace replaces all variables in string and returns the result
Replace(string) string
// Set adds a custom replacement value
Set(key string, value Value)
// Get returns the replacement value for key
Get(key string) string
}
Replacer is capable of replacing variables in a template string
func GetReplacer ¶
GetReplacer returns the replacer associated with ctx
type StringValue ¶
type StringValue string
StringValue is a utility method to use string constants for the Value interface
Click to show internal directories.
Click to hide internal directories.