Skip to content

katsew/go-getenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Add to GOPATH

go get github.com/katsew/go-getenv

Usage

package main

import (
  ge "github.com/katsew/go-getenv"
)


// If a environment variable (first arg) is defined, specified value return.
// Otherwise, return default value (second arg).
func main() {

  v := ge.GetEnv("FROM_ENVIRONMENT_VARIABLE", "default value").String()
  log.Print(v)

}

About

Simple getenv implementation for go.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages