forked from coop-cloud-mirrors/godotenv
		
	Compare commits
	
		
			12 Commits
		
	
	
		
			test-go-1.
			...
			multiline-
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 1e1ed32207 | |||
| d4cc462af7 | |||
| 02a6516148 | |||
| 08d75deb23 | |||
| c723940cb5 | |||
| 687a37d9c9 | |||
| a4061f306a | |||
| 22f9782344 | |||
| 2f66a86dc9 | |||
| 77e8b7d7d6 | |||
| dd57617d18 | |||
| 15b4dd39bb | 
							
								
								
									
										2
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @ -8,7 +8,7 @@ jobs: | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         go: [ '1.20', '1.19', '1.18', '1.17', '1.16' ] | ||||
|         go: [ '1.19', '1.18', '1.17', '1.16', '1.15' ] | ||||
|         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 +1,2 @@ | ||||
| export OPTION_A='postgres://localhost:5432/database?sslmode=disable' | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	