Skip to content

Loads environment variables from .env file. Port of ruby gem 'dotenv-rails'.

Notifications You must be signed in to change notification settings

lazureykis/dotenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotenv Build Status

Port of bkeepers/dotenv to Go language.

Loads environment variables from .env file. Useful for development configuration.

Get started:

go get github.com/lazureykis/dotenv
cd $GOPATH/src/github.com/lazureykis/dotenv/example
go run main.go

Usage:

import "github.com/lazureykis/dotenv"


func main() {
  dotenv.Go()
  // or dotenv.GoWithPath('/full/path/to/.env_file')
}

About

Loads environment variables from .env file. Port of ruby gem 'dotenv-rails'.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages