Skip to content

XConfig v0.4.1

Compare
Choose a tag to compare
@metalwolf metalwolf released this 30 Apr 19:53
· 4 commits to master since this release
4209de1

Package xconfig loads a configuration file similar to a .ini file, but with some important improvements:

  • The xconfig recognize bool, int, float and Strings, and also collections of values and hierarchical nested sub-config sets.
  • The xconfig is compatible with XDataset to inject and use in templates, database records, etc.
  • You can load more than one file in merge mode or replacing mode in the same config object.
  • You can set and get parameters at any time.
  • You can load the config object based on a file, but also on a string and another object; this way you can serialize, unserialize, transfer by any strem, save or load on database the object, etc.
  • You can also save back the config string with all its comments.

New in this release:

  • Marshal and SaveFile implemented to generate original string of XConfig file and save it to a file, keeping comments and order
  • example directory removed. The examples are implicitly into documentation and tests.