全部搜尋項
bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ 原始碼: golang-github-subosito-gotenv  ]

套件:golang-github-subosito-gotenv-dev(1.2.0+git20190917.de67a66-3)

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 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 golang-github-subosito-gotenv-dev

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 8。1 kB39。0 kB [檔案列表]