Discover Packages
github.com/gobuffalo/buffalo
internal
env
package
Version:
v1.1.4
Opens a new window with list of versions in this module.
Published: Mar 20, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package env provides environment variable utilities for Buffalo.
This package replaces the github.com/gobuffalo/envy dependency.
Environ returns a copy of the environment variables.
Get returns the value of the environment variable named by key.
If the variable is not set or is empty, it returns the fallback value.
GoPath returns the GOPATH environment variable.
If GOPATH is not set, it returns the default GOPATH: $HOME/go
Load loads .env file(s) into environment.
If no filenames are provided, it loads the .env file in the current directory.
MustGet returns the value of the environment variable named by key.
It returns an error if the variable is not set or is empty.
Set sets the environment variable named by key to value.
Temp executes f with temporarily modified environment variables.
After f returns, the environment is restored to its original state.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.