Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 352 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 352 Bytes

HOW TO USE

Get the latest version of this module running go get -d github.com/jaavier/dotenv in your project directory

package example

import (
	"fmt"
	"os"

	"github.com/jaavier/dotenv"
)

func main() {
	if err := dotenv.Load(".env"); err != nil {
		fmt.Println(err)
	} else {
		fmt.Println(os.Getenv("YOUR_SECRET_KEY_HERE"))
	}
}