8000 GitHub - NCAR/go-figure: A Viper wrapper to read from tiered locations and files
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

NCAR/go-figure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#go-figure GoDoc codebeat badge Build Status Coverage Status Go Report Card go-figure is a multi-file, multi-configuration package configuration to handle old-school configuration techniques such searching for as multiple files in multiple folders (~/something.d, /etc/something.d, ...).

It does expand standard shell parameters in the path list via os.ExpandEnv().

#Usage

Generally the following should be done:

    ...
    v := viper.New()
    v.SetConfigType("yml|json|yaml")
    gofigure.Parse(v, []string{"${HOME}/.app.d", "${CFGD}", "/etc/app.d"})
    ...
    //do something with v

About

A Viper wrapper to read from tiered locations and files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0