Small correction to code in the README.

pull/1/head
Mark Wolfe 2013-09-03 18:34:37 +10:00
parent 05b73c4383
commit 4392e21bf6
1 changed files with 4 additions and 1 deletions

View File

@ -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")