env

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 2 Imported by: 3

README

env-go

Go micro-library for environment variable handling with 0 dependencies.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOr

func GetOr(key, default_ string) string

GetOr attempts to get environment variable, however, if it fails to do so, it will return the given default_ value.

func MustGet

func MustGet(key string) (val string)

MustGet attemts to get environment variable key and panics on failure.

func TryGet

func TryGet(key string) (val string, err error)

TryGet attempts to get environment variable key and returns error in case of failure.

Types

This section is empty.

Jump to

Keyboard shortcuts

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