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:
|
||||
fail-fast: false
|
||||
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 ]
|
||||
name: ${{ matrix.os }} Go ${{ matrix.go }} Tests
|
||||
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
|
||||
|
||||
```go
|
||||
_ = godotenv.Load("somerandomfile")
|
||||
_ = godotenv.Load("filenumberone.env", "filenumbertwo.env")
|
||||
godotenv.Load("somerandomfile")
|
||||
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)
|
||||
|
@ -1,2 +1 @@
|
||||
export OPTION_A='postgres://localhost:5432/database?sslmode=disable'
|
||||
|
||||
|
Reference in New Issue
Block a user