すべてのオプション
bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ ソース: golang-github-subosito-gotenv  ]

パッケージ: golang-github-subosito-gotenv-dev (1.2.0+git20190917.de67a66-2)

golang-github-subosito-gotenv-dev に関するリンク

Screenshot

Debian の資源:

golang-github-subosito-gotenv ソースパッケージをダウンロード:

メンテナ:

外部の資源:

類似のパッケージ:

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.

その他の golang-github-subosito-gotenv-dev 関連パッケージ

  • 依存
  • 推奨
  • 提案
  • enhances

golang-github-subosito-gotenv-dev のダウンロード

すべての利用可能アーキテクチャ向けのダウンロード
アーキテクチャ パッケージサイズ インストールサイズ ファイル
all 7.9 kB39.0 kB [ファイル一覧]