Skip to content
/ envy Public

A simple Golang package to get environment variables, returns a string or an error.

Notifications You must be signed in to change notification settings

shindakun/envy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

envy

envy gopher

A simple package to get environment variables, returns a string or an error. Go Buffalo already had a ENV package named envy it seems. Naming stuff is hard. Oh well.

Installation

Use go get github.com/shindakun/envy to install into Go or use as a Go module.

Usage

Import github.com/shindakun/envy, see full example below.

Usage example

package main

import (
  "fmt"
  "github.com/shindakun/envy"
)

func main() {
  gopath, err := envy.Get("GOPATH")
  if err != nil {
    panic(err)
  }
  fmt.Println(gopath)
}

About

A simple Golang package to get environment variables, returns a string or an error.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages