envfile

package
v0.0.0-...-fa0a123 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package envfile loads environment variables from env files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Load looks for the default .env and .envprivate files in the current directory and the path of the binary. It sets all environment variables from it for the current process. It will overwrite existing environment variables.

func LoadFiles

func LoadFiles(files ...string)

LoadFiles loads the given files instead of the default ones. If the file name contains no path, the current and executable directories will be searched for the file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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