Merge pull request #1 from wolfeidau/readme_corrections

Small correction to code in the README.
This commit is contained in:
John Barton 2013-09-03 03:37:38 -07:00
commit 38f18b8248

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