+
Skip to content

nxtgo/env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

env

dotenv loader the chad way.

why env over x?

  • 50~ lines of code
  • 0-dep
  • relies on go 1.1
  • based code

example

source

package main

import (
	"fmt"
	"os"

	"github.com/nxtgo/env"
)

func init() {
	err := env.Load("")
	if err != nil {
		panic(err)
	}
}

func main() {
	fmt.Println(".env file is loaded :D")
	fmt.Println(os.Getenv("BASED"))
}

license

under CC0 1.0 (public domain) + ip waiver.

About

suckless dotenv lib

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载