Skip to content

Releases: webability-go/xconfig

XConfig v0.4.3

17 Nov 04:45
ea49a9f
Compare
Choose a tag to compare

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 stream, save or load on database the object, etc.
  • You can also save back the config string with all its comments.

New in this release:

  • Documentation revised and added with Marshal and SaveFile Functions
  • Bug corrected in Marshal, sometimes an empty line was ignored by the reconstruction of the string

XConfig v0.4.2

01 May 01:41
6c34598
Compare
Choose a tag to compare

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:

  • Pointers to self structure changed (c.Parameters instead of (*c).Parameters)
  • Del/Set/Add function now work correctly and do not duplicate entries if not merged (Add)

XConfig v0.4.1

30 Apr 19:53
4209de1
Compare
Choose a tag to compare

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.

XConfig v0.4.0

30 Mar 02:51
dc6bb36
Compare
Choose a tag to compare

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:

  • Modulatization (go mod init) and use of xcore/v2
  • Documentation finished
  • Comments into code, corrections to meet golint standards
  • String modified to order printed lines and get a uniform result if the XConfig contains the same data
  • Tests implemented to verify official defined specs

XConfig v0.3.0

26 Feb 03:31
f532b25
Compare
Choose a tag to compare

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 version:
Licence and tests added

XConfig v0.2.1

10 Feb 16:21
d32631a
Compare
Choose a tag to compare

Package xconfig is used to easily build a config object based on a descriptor file.
New in this version:

  • Full working version
  • Bugs corrected on String and GoString functions on XConfig

v0.0.1-alpha

08 Nov 01:09
Compare
Choose a tag to compare

First post of the XConfig package. Read multiple configuration files, merge them, replace them, with complex cumulative, array and subset parameters