Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterpolateEnvVars ¶
InterpolateEnvVars replaces environment variable references in strings with their values. Supports ${VAR}, $VAR, and ${VAR:-default} syntax.
If a variable doesn't exist: - In strict mode: returns an error - In normal mode: uses default value if provided, otherwise empty string
Types ¶
type MissingEnvVarsError ¶
type MissingEnvVarsError struct {
Variables []string
}
MissingEnvVarsError is returned when required environment variables are missing
func (*MissingEnvVarsError) Error ¶
func (e *MissingEnvVarsError) Error() string
Click to show internal directories.
Click to hide internal directories.