forked from coop-cloud-mirrors/godotenv
Compare commits
3 Commits
multiline-
...
test-go-1.
Author | SHA1 | Date | |
---|---|---|---|
9d23ddee6d | |||
cc9e9b7de7 | |||
0f21d20acb |
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -8,7 +8,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
go: [ '1.19', '1.18', '1.17', '1.16', '1.15' ]
|
go: [ '1.20', '1.19', '1.18', '1.17', '1.16' ]
|
||||||
os: [ ubuntu-latest, macOS-latest, windows-latest ]
|
os: [ ubuntu-latest, macOS-latest, windows-latest ]
|
||||||
name: ${{ matrix.os }} Go ${{ matrix.go }} Tests
|
name: ${{ matrix.os }} Go ${{ matrix.go }} Tests
|
||||||
steps:
|
steps:
|
||||||
|
@ -75,8 +75,8 @@ import _ "github.com/joho/godotenv/autoload"
|
|||||||
While `.env` in the project root is the default, you don't have to be constrained, both examples below are 100% legit
|
While `.env` in the project root is the default, you don't have to be constrained, both examples below are 100% legit
|
||||||
|
|
||||||
```go
|
```go
|
||||||
_ = godotenv.Load("somerandomfile")
|
godotenv.Load("somerandomfile")
|
||||||
_ = godotenv.Load("filenumberone.env", "filenumbertwo.env")
|
godotenv.Load("filenumberone.env", "filenumbertwo.env")
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to be really fancy with your env file you can do comments and exports (below is a valid env file)
|
If you want to be really fancy with your env file you can do comments and exports (below is a valid env file)
|
||||||
|
@ -1,2 +1 @@
|
|||||||
export OPTION_A='postgres://localhost:5432/database?sslmode=disable'
|
export OPTION_A='postgres://localhost:5432/database?sslmode=disable'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user