Releases: xgfone/gconf
Releases · xgfone/gconf
v2.0.0-beta.4
- Fix a bug about decoder alias.
v2.0.0-beta.3
- Added:
- Add the method
SetStringVersion
to simplify the version setting. - Add the alias of the type name of the decoder.
- Add some global functions, which are equal to the methods of the global config
Conf
.
- Add the method
- Changed:
- The type name of the decoder is case insensitive.
- The format of the file source is
ini
.
- Removed:
- Some methods, such as
Observe
orSetErrHandler
, don't return*Config
.
- Some methods, such as
v2.0.0-beta.2
- Added:
- Add the method
MustOpt(optName)
forOptGroup
. - Add the
github.com/urfave/cli
source. - Add the HTTP URL source.
- Add the method
- Others:
- Ignore empty data when loading and watching the source.
v2.0.0-beta
Pre-release v2.0.0
v1.5.0
- Added:
- Add the support of the hot-reloading, but only the
INI
and theProperty
parsers support it.
- Add the support of the hot-reloading, but only the
- Changed:
- Call the method
Post()
of all the parsers in reversed turn. - Allow
SetPrintf
,Observe()
be called at any time, not only before parsing. - Use
Debugf()
instead ofPrintf()
for the debug log, andPrintf
always outputs the log. - Initialize all the options by the default(if exists) or zero(if enabled) before parsing instead when checking.
- Cancel some unparsed checks, so you can call
Stop()
,SetCliParsed()
,UpdateOptValue
andSetExecutedCommand()
before parsing to write yourself parsing process. - The
INI
and theProperty
parsers ignore the nonexistent file, and update all the options after parsing them, so if a certain option is error, the entire fails and no option is updated.
- Call the method
- Deprecated:
- Deprecate the priority of the option, such as the function
SetOptValue()
andPriority()
. Please useUpdateOptValue()
,LockOpt()
andUnlockOpt()
instead.
- Deprecate the priority of the option, such as the function
- Fixed:
- Fix some validator errors.