expandenv

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 1 Imported by: 0

Documentation

Overview

Package expandenv replaces ${key} in byte slices with the env value of key.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandEnv

func ExpandEnv(s []byte) []byte

ExpandEnv looks for ${var} in s and replaces them with value of the corresponding environment variable. It's not like os.ExpandEnv which handles both ${var} and $var. $var is considered invalid, since configurations like password for redis/mysql may contain $.

Types

This section is empty.

Jump to

Keyboard shortcuts

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