Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.

Commit 390de37

Browse files
committed
README.md mentions Parse(io.Reader)
1 parent ebf1036 commit 390de37

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ myEnv, err := godotenv.Read()
9696
s3Bucket := myEnv["S3_BUCKET"]
9797
```
9898

99+
... or from an `io.Reader` instead of a local file
100+
101+
```go
102+
reader := getRemoteFile()
103+
myEnv, err := godotenv.Parse(reader)
104+
```
105+
99106
### Command Mode
100107

101108
Assuming you've installed the command as above and you've got `$GOPATH/bin` in your `$PATH`

0 commit comments

Comments
 (0)