File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 4
4
//
5
5
// The TL;DR is that you make a .env file that looks something like
6
6
//
7
- // SOME_ENV_VAR=somevalue
7
+ // SOME_ENV_VAR=somevalue
8
8
//
9
9
// and then in your go code you can call
10
10
//
11
- // godotenv.Load()
11
+ // godotenv.Load()
12
12
//
13
13
// and all the env vars declared in .env will be available through os.Getenv("SOME_ENV_VAR")
14
14
package godotenv
@@ -46,7 +46,7 @@ func Parse(r io.Reader) (map[string]string, error) {
46
46
//
47
47
// You can otherwise tell it which files to load (there can be more than one) like:
48
48
//
49
- // godotenv.Load("fileone", "filetwo")
49
+ // godotenv.Load("fileone", "filetwo")
50
50
//
51
51
// It's important to note that it WILL NOT OVERRIDE an env variable that already exists - consider the .env file to set dev vars or sensible defaults.
52
52
func Load (filenames ... string ) (err error ) {
@@ -69,7 +69,7 @@ func Load(filenames ...string) (err error) {
69
69
//
70
70
// You can otherwise tell it which files to load (there can be more than one) like:
71
71
//
72
- // godotenv.Overload("fileone", "filetwo")
72
+ // godotenv.Overload("fileone", "filetwo")
73
73
//
74
74
// It's important to note this WILL OVERRIDE an env variable that already exists - consider the .env file to forcefully set all vars.
75
75
func Overload (filenames ... string ) (err error ) {
You can’t perform that action at this time.
0 commit comments