Merge pull request #1 from wolfeidau/readme_corrections

Small correction to code in the README.
pull/2/head
John Barton 2013-09-03 03:37:38 -07:00
commit 38f18b8248
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 Then in your Go app you can do something like
```go ```go
package main
import ( import (
"github.com/joho/godotenv" "github.com/joho/godotenv"
"log"
"os" "os"
) )
func main() { func main() {
err := godotenv.Load() err := godotenv.Load()
if err != nil { if err != nil {
os.Fatal("Error loading .env file") log.Fatal("Error loading .env file")
} }
s3Bucket := os.Getenv("S3_BUCKET") s3Bucket := os.Getenv("S3_BUCKET")