Skip to content
Configure struct from environment variables
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Build Status GoDoc codecov

Env Conf

Environment Variable config loader for go

The import path "" is equivalent to "", but some tools aren't keen on the .go suffix. (And what if I wanted to write this for another language?)

Simple Usage

import ""

var config struct {
	Bind string `env:"BIND" default:":8080"`

func main() {
	if err := envconf.Parse(&config); err != nil {
You can’t perform that action at this time.