Documentation ¶ Index ¶ func Get(key string, def ...string) string func Load(files ...string) error func Set(key string, value interface{}) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Get ¶ func Get(key string, def ...string) string Get retrieves the value of the environment variable named by the key. It returns the value, which will be empty if the variable is not present. If value is empty and a default value is passed it will be returned instead. func Load ¶ func Load(files ...string) error Load .env files using godotenv package. func Set ¶ func Set(key string, value interface{}) error Set sets the value of the environment variable named by the key. It returns an error, if any. Types ¶ This section is empty. Source Files ¶ View all Source files env.go Click to show internal directories. Click to hide internal directories.