env

package module
v0.0.0-...-0436a86 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(envKey, defaultVal string) string

Get checks if the specified environment variable key exists and returns the value, if it doesn't the specified default value will be returned instead.

func Load

func Load(envFile string) error

Load checks if the specified environment variables file exists and loads it if it does, if it doesn't an error will be returned instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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