mirror of
				https://github.com/joho/godotenv.git
				synced 2025-10-28 03:25:46 +00:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			multiline-
			...
			v0.0.0-tes
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| cc9e9b7de7 | |||
| 0f21d20acb | 
| @ -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
	