package
Version:
v0.5.1
Opens a new window with list of versions in this module.
Published: Apr 12, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Env
The core/env package provides functionality for ensuring we retrieve an environment variable
Example
dbURL := env.MustGet("DATABASE_URL")
Documentation
¶
Package env provides functionality for ensuring we retrieve an environment
variable
MustGet returns an environment variable by name
If the requested variable does not exist, we throw a fatal error
package main
import (
"log"
"github.com/LUSHDigital/core/env"
)
func main() {
var dbURL = env.MustGet("DATABASE_URL")
log.Println(dbURL)
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.