3 ms·
JSON (with comments), YAML, and TOML configs can all be read in a standardized format by Ozzo-Config: https://github.com/go-ozzo/ozzo-config https://github.com/
by caleblloyd 10y ago
JSON (with comments), YAML, and TOML configs can all be read in a standardized format by Ozzo-Config: https://github.com/go-ozzo/ozzo-config https://github.com/go-ozzo/ozzo-config
It also supports including multiple config files that merge into one big config. Globbing config files in a directory would be easy.
As an asise, the author of Ozzo-Config is Qiang Xue. He founded the Yii and Yii2 PHP frameworks. Golang code quality in his Ozzo libraries is very good.