dotenv

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNewEnvVariable

func AddNewEnvVariable(key string, value string) error

AddNewEnvVariable adds a new environment variable

func EnvVariableExists

func EnvVariableExists(key string) (bool, error)

EnvVariableExists returns true if an environment variable with the given key exists

func GetEnvValue

func GetEnvValue(key string) (value string, err error)

GetEnvValue returns the value of a given environment variable

func RemoveEnvVariable

func RemoveEnvVariable(key string) error

RemoveEnvVariable removes an environment variable from a .env file

func SetNewEnvKey

func SetNewEnvKey(key string) (string, error)

SetNewEnvKey sets new unique env key

Types

This section is empty.

Jump to

Keyboard shortcuts

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