Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Environment ¶
type Environment struct {
// EnvPath is the path to your environment varible file, usually .env in the root but can be whatever you like
EnvPath string
// EnableOsEnvOverride allows any matching os level environment variables to override any contained in the environment file
EnableOsEnvOverride bool
// HideOutput simply shows or hides console output of parsed environment variables
HideOutput bool
}
Environment struct
func (*Environment) LoadEnv ¶
func (e *Environment) LoadEnv() error
LoadEnv loads the specified environment file and splits them into key value pairs these are then stored in a globally accessible map via a getter method if Environment.EnableOsOverride is set to true any matching keys that exist in the actual environment will override the value in the file
Click to show internal directories.
Click to hide internal directories.