Skip to content

voidhaze/jsoncfg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-config-reader

JSON Config Reader

A simple config reader which is capable of loading multiple JSON files, merging their contents and reading values from the derived structure by using a dot seperated key string. Configs are loaded in order, with the information in later configs overriding that of earlier configs. See fixtures for examples.

Example

    import "github.com/voidhaze/jsoncfg"

    config := new(Jsonconfig)
    config.Loadfiles("config.json", "config.local.json")

    host := config.Get("database.host")

About

JSON Config Reader

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages