env

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(envFilePath ...string)

Initialize initializes the environment variables

func Must

func Must(key string) string

Must retrieves the value of an environment variable, panicking if not set.

func Value

func Value(key string) string

Env returns the value for an environment key

func VaultLoad

func VaultLoad(options struct {
	Password      string
	VaultFilePath string
	VaultContent  string
}) error

EncInitialize initializes environment variables from a vault file or content using the provided password. It takes an options struct containing the password and either a vault file path or vault content. It returns an error if the initialization fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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