Skip to content

Releases: xgfone/gconf

v3.3.0

12 Jul 05:49
Compare
Choose a tag to compare
  • Added:
    • Add the function ErrorHandler to wrap the error handler to ignore ErrNoOpt and ErrFrozenOpt.
  • Changed:
    • The default error handler will ignore ErrFrozenOpt by using ErrorHandler.
    • Don't call the observers of the option register when registering the options of []Opt(nil) or []Opt{}.

v3.2.0

09 Jul 13:49
Compare
Choose a tag to compare
  • Added:
    • Add the alias for the option. So you can migrate the old option to the new in the same group without changing the old code.

v3.1.0

08 Jul 13:29
Compare
Choose a tag to compare
  • Added:
    • Add the callback for DataSet.
    • Add the close notice CloseNotice.

v3.0.0

06 Jul 10:39
Compare
Choose a tag to compare
  • Added:
    • Add the zookeeper source.
  • Changed:
    • Refactor the source and the watcher to make it simpler.

v2.2.0

05 Jul 12:22
Compare
Choose a tag to compare

Changed:

  • The json decoder supports the comment line starting with //.

v2.1.1

01 Jul 08:39
Compare
Choose a tag to compare
  • Fixed:
    • Fix the continuation line error about the ini decoder.

v2.1.0

01 Jul 01:28
Compare
Choose a tag to compare
  • Added:
    • Add the function ConvertOptsToCliFlags to convert option group to []cli.Flag. (github.com/urfave/cli)

v2.0.1

28 Jun 06:25
Compare
Choose a tag to compare
  • Fixed: Fix the option name when registering the struct.

v2.0.0

25 Jun 12:54
Compare
Choose a tag to compare

Release the v2 stable.

  • Added:
    • Add the toml and yaml decoders.
    • Convert map[interface{}]interface{} to map[string]interface{} automatically when loading map.
  • Changed:
    • The cli source NewCliSource can ignore the default group and appoints the groups as a whole group.

v2.0.0-beta.5

16 Jun 02:59
Compare
Choose a tag to compare
  • Added:
    • Add the support for the snapshot for Config, Snapshot().
    • Add the support for the backup file to load and backup the whole last snapshot of configuration data, LoadBackupFile().
    • Add ObserveRegister to watch the option register.
    • Add UpdateValue to support the key-value way.
    • Add LoadMap to support the load way of map.
    • Add LoadSourceWithoutWatcher only to load the source, not add the watcher.
    • Add FreezeOpt, UnfreezeOpt, OptIsFrozen, FreezeGroup, UnfreezeGroup, GroupIsFrozen to freeze and unfreeze the whole group or the option.
  • Changed:
    • Close returns error no longer.
    • Change Observe from asynchronizedly to synchronizedly.
    • Rename IsSet and HasAndIsNotSet to OptIsSet and HasOptAndIsNotSet
    • The URL source support to customize the interval duration and the data format.