dotenv

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DotEnvExample = ".env.example"
View Source
const DotEnvFile = ".env"

Variables

This section is empty.

Functions

func ConfigureDotEnv

func ConfigureDotEnv(dir string, config setup.SetupConfig) error

func ConfirmDotEnvOverwrite

func ConfirmDotEnvOverwrite() bool

func CopyEnvFile

func CopyEnvFile(dir string, overwrite bool) error

func CreateDotEnvFileAndLoad

func CreateDotEnvFileAndLoad(dir string) error

func GenerateNewAppKey

func GenerateNewAppKey(dir string) error

func ReloadDotEnv

func ReloadDotEnv(dir string) error

func SetEnvVar

func SetEnvVar(content []byte, key, value string) (newcontent []byte, appends bool)

func SetKeyInEnvironmentFile

func SetKeyInEnvironmentFile(dir, key, value string) error

func SetupDBDriver

func SetupDBDriver(dir string, config setup.SetupConfig) error

func SetupDotEnvFile

func SetupDotEnvFile(dir string, config setup.SetupConfig) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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