Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

wearkinetic/env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

env

wraps common environment variables functions and initializers.

Install

go get -u github.com/wearkinetic/env

How to use

import "github.com/wearkinetic/env"
import "log"

parsed, err := env.Parse("URL1", "KEY", "PASSWORD")
if err != nil{
  log.Fatalf("Cannot initialize the package because of missing environment variable - %s", err.Error())
}

// Then do some work with parsed
url1 := parsed["URL1"]
key := parsed["KEY"]
// ....

About

Wrapper for environment variables access

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages