1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
Source: golang-github-subosito-gotenv
Section: devel
Priority: optional
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Uploaders: Andreas Henriksson <andreas@fatal.se>,
Anthony Fok <foka@debian.org>,
Build-Depends: debhelper-compat (= 12),
dh-sequence-golang,
golang-any (>= 2:1.18~),
golang-github-stretchr-testify-dev (>= 1.7.0),
Standards-Version: 4.6.2
Homepage: https://github.com/subosito/gotenv
Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-subosito-gotenv
Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-subosito-gotenv.git
XS-Go-Import-Path: github.com/subosito/gotenv
Testsuite: autopkgtest-pkg-go
Package: golang-github-subosito-gotenv-dev
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends},
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.
|