全部搜索项
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 [文件列表]