mirror of
				https://github.com/joho/godotenv.git
				synced 2025-10-31 04:52:44 +00:00 
			
		
		
		
	Compare commits
	
		
			12 Commits
		
	
	
		
			v1.5.0-bet
			...
			multiline-
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 1e1ed32207 | |||
| d4cc462af7 | |||
| 02a6516148 | |||
| 08d75deb23 | |||
| c723940cb5 | |||
| 687a37d9c9 | |||
| a4061f306a | |||
| 22f9782344 | |||
| 2f66a86dc9 | |||
| 77e8b7d7d6 | |||
| dd57617d18 | |||
| 15b4dd39bb | 
| @ -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
	