Skip to content

Instantly share code, notes, and snippets.

@miguelmota miguelmota/.env
Created Jun 12, 2019

What would you like to do?
Golang dotenv (.env) example
package main
import (
func main() {
err := godotenv.Load()
if err != nil {
log.Fatal("Error loading .env file")
fmt.Println(os.Getenv("HOST")) //
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.