envtemplate

package
v1.130.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: Apache-2.0 Imports: 5 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookupEnv added in v1.83.0

func LookupEnv(name string) (string, bool)

LookupEnv returns the expanded environment variable value for the given name.

The expanded means that `%{ENV_VAR}` placeholders in env var value are replaced with the corresponding ENV_VAR values (recursively).

false is returned if environment variable isn't found.

func ReplaceBytes added in v1.83.0

func ReplaceBytes(b []byte) []byte

ReplaceBytes replaces `%{ENV_VAR}` placeholders in b with the corresponding ENV_VAR values.

func ReplaceString added in v1.83.0

func ReplaceString(s string) string

ReplaceString replaces `%{ENV_VAR}` placeholders in b with the corresponding ENV_VAR values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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