forked from coop-cloud-mirrors/godotenv
README.md mentions Parse(io.Reader)
This commit is contained in:
parent
ebf1036af6
commit
390de3704e
@ -96,6 +96,13 @@ myEnv, err := godotenv.Read()
|
|||||||
s3Bucket := myEnv["S3_BUCKET"]
|
s3Bucket := myEnv["S3_BUCKET"]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
... or from an `io.Reader` instead of a local file
|
||||||
|
|
||||||
|
```go
|
||||||
|
reader := getRemoteFile()
|
||||||
|
myEnv, err := godotenv.Parse(reader)
|
||||||
|
```
|
||||||
|
|
||||||
### Command Mode
|
### Command Mode
|
||||||
|
|
||||||
Assuming you've installed the command as above and you've got `$GOPATH/bin` in your `$PATH`
|
Assuming you've installed the command as above and you've got `$GOPATH/bin` in your `$PATH`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user