Releases: xgfone/gconf
Releases · xgfone/gconf
v3.3.0
- Added:
- Add the function
ErrorHandler
to wrap the error handler to ignoreErrNoOpt
andErrFrozenOpt
.
- Add the function
- Changed:
- The default error handler will ignore
ErrFrozenOpt
by usingErrorHandler
. - Don't call the observers of the option register when registering the options of
[]Opt(nil)
or[]Opt{}
.
- The default error handler will ignore
v3.2.0
v3.1.0
v3.0.0
v2.2.0
v2.1.1
v2.1.0
v2.0.1
v2.0.0
Release the v2 stable.
- Added:
- Add the
toml
andyaml
decoders. - Convert
map[interface{}]interface{}
tomap[string]interface{}
automatically when loading map.
- Add the
- Changed:
- The
cli
sourceNewCliSource
can ignore the default group and appoints the groups as a whole group.
- The
v2.0.0-beta.5
- 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.
- Add the support for the snapshot for
- Changed:
Close
returnserror
no longer.- Change
Observe
from asynchronizedly to synchronizedly. - Rename
IsSet
andHasAndIsNotSet
toOptIsSet
andHasOptAndIsNotSet
- The URL source support to customize the interval duration and the data format.