[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#945081: ITP: golang-github-subosito-gotenv -- Load environment variables from `.env` or `io.Reader` in Go.



Package: wnpp
Severity: wishlist
Owner: Andreas Henriksson <andreas@fatal.se>

* Package name    : golang-github-subosito-gotenv
  Version         : 1.2.0+git20190917.de67a66-1
  Upstream Author : Alif Rachmawadi
* URL             : https://github.com/subosito/gotenv
* License         : TODO
  Programming Lang: Go
  Description     : Load environment variables from `.env` or `io.Reader` in Go.

 To modify your app environment variables, gotenv expose 2 main functions:
  * gotenv.Load
  * gotenv.Apply
 By default, gotenv.Load will look for a file called .env in the current
 working directory.
 .
 Behind the scene, it will then load .env file and export the valid
 variables to the environment variables. Make sure you call the method
 as soon as possible to ensure it loads all variables, say, put it on
 init() function.
 .
 Once loaded you can use os.Getenv() to get the value of the variable.

This is a dependency of garagemq a.k.a. kubemq.io


Reply to: