Tarkennettu haku
bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Source: golang-github-subosito-gotenv  ]

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

Links for golang-github-subosito-gotenv-dev

Screenshot

Debian-palvelut:

Imuroi lähdekoodipaketti golang-github-subosito-gotenv:

Ylläpitäjät:

External Resources:

Samankaltaisia paketteja:

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.

Muut pakettiin golang-github-subosito-gotenv-dev liittyvät paketit

  • depends
  • recommends
  • suggests
  • enhances

Imuroi golang-github-subosito-gotenv-dev

Imurointi kaikille saataville arkkitehtuureille
Arkkitehtuuri Paketin koko Koko asennettuna Tiedostot
all 7.9 kt39.0 kt [tiedostoluettelo]