mirror of
https://github.com/joho/godotenv.git
synced 2025-04-27 13:12:49 +00:00
Merge pull request #1 from wolfeidau/readme_corrections
Small correction to code in the README.
This commit is contained in:
commit
38f18b8248
@ -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