Skip to content
/ config Public

Golang package to manage app configurations, loosely coupled

License

Notifications You must be signed in to change notification settings

efixler/config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

config

Go package to provide loosely coupled configuration values to your app.

Go Documentation

Out-of-the-box, config provides a simple passthrough for environment variables. With a little bit of code you can do custom configuration settings based on the deploy env, or arbitrarily complex implementations. In all of these cases, packages that consume configuration only need to import the config package, and not the concrete data provider.

Installation

go get github.com/efixler/config

Usage

import (
	"github.com/efixler/config"
)

cfg := config.Default()
apiHost := cfg.GetOrDefault("API_HOST", "https://api.foobar.com")

See the Godoc for details and more examples.

About

Golang package to manage app configurations, loosely coupled

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages