Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasPlaceholders ¶
HasPlaceholders returns true if s contains any {{VAR}} patterns.
Types ¶
type Expander ¶
type Expander struct {
// contains filtered or unexported fields
}
Expander replaces {{VAR}} placeholders in strings with values from config env map or OS environment variables. Config values take precedence.
func NewExpander ¶
NewExpander creates an expander from a config env map. OS environment variables are used as fallback for any key not in the map.
func (*Expander) Collapse ¶
Collapse replaces a known base URL with a {{VAR}} placeholder. Used during recording to make snapshots environment-independent.
Click to show internal directories.
Click to hide internal directories.