Skip to content
Sections
>> Trisquel >> Pakiety >> aramo >> devel >> golang-github-subosito-gotenv-dev
nabia  ] [  aramo  ]
[ Pakiet źródłowy: golang-github-subosito-gotenv  ]

Pakiet: golang-github-subosito-gotenv-dev (1.2.0+git20190917.de67a66-2)

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.

Inne pakiety związane z golang-github-subosito-gotenv-dev

  • wymaga
  • poleca
  • sugeruje

Pobieranie golang-github-subosito-gotenv-dev

Pobierz dla wszystkich dostępnych architektur
Architektura Rozmiar pakietu Rozmiar po instalacji Pliki
all 7,3 KiB38 KiB [lista plików]