gcfg v1.1.0 Release Notes

Release Date: 2016-08-14 // over 7 years ago
  • 🔧 This release adds support for subsection defaults. Default values can be provided for subsection if there is a corresponding section default-<sectionname>. The values can either be set programmatically by pre-setting the fields in struct Default_<sectionname>, or from the configuration data in the section default-<sectionname>. As usual, configuration file values override pre-set field values. Default values are only applied to newly defined subsections (those for which a map value did not exist prior to reading the configuration data). The struct Default_<sectionname> must be gob-encodeable (gob-encoding/decoding is used for deep-copying of the struct values).