interpolation

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package interpolation ports the string-env-interpolation npm package: it expands ${VAR} and ${VAR:-default} in config file content before parsing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expand

func Expand(s string) string

Expand replaces ${VAR} with the env value and ${VAR:-default} with the default when VAR is unset or empty. Unset vars without a default become "".

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL