envexpand

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Braced

func Braced(value string, lookup Lookup) (string, []string)

Braced expands ${VAR} placeholders using lookup. Bare $VAR sequences are preserved so values such as bcrypt hashes are not corrupted.

func BracedFromOS

func BracedFromOS(value string) (string, []string)

BracedFromOS expands ${VAR} placeholders from process environment variables.

Types

type Lookup

type Lookup func(string) (string, bool)

Lookup resolves an environment variable name.

Jump to

Keyboard shortcuts

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