Skip to content

zhangweidev/goenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goenv

autoload .env

example

package main

import (
	"fmt"

	env "github.com/xxiu/goenv"
	_ "github.com/xxiu/goenv/autoload"
)

func main() {

	db := env.Getenv("DB")
	fmt.Printf("db:%s \n", db)

    env.Load("file1","file2")

}

thank

Read file code form: https://github.com/joho/godotenv

About

autoload .env

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages