forked from coop-cloud-mirrors/godotenv
Small correction to code in the README.
This commit is contained in:
parent
05b73c4383
commit
4392e21bf6
@ -26,15 +26,18 @@ SECRET_KEY=YOURSECRETKEYGOESHERE
|
||||
Then in your Go app you can do something like
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/joho/godotenv"
|
||||
"log"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
err := godotenv.Load()
|
||||
if err != nil {
|
||||
os.Fatal("Error loading .env file")
|
||||
log.Fatal("Error loading .env file")
|
||||
}
|
||||
|
||||
s3Bucket := os.Getenv("S3_BUCKET")
|
||||
|
Loading…
x
Reference in New Issue
Block a user