From 4392e21bf61ad86c81134d946962fd5d63c5e9ff Mon Sep 17 00:00:00 2001 From: Mark Wolfe Date: Tue, 3 Sep 2013 18:34:37 +1000 Subject: [PATCH] Small correction to code in the README. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fbf5dfe..f696370 100644 --- a/README.md +++ b/README.md @@ -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")