Help us shape the future of Go! Take the 2026 Go Developer Survey

interpolation

package
v0.4.5 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