koanf
koanf copied to clipboard
add WatchWithContext() funcs for various providers where possible
This pull request closes issue: https://github.com/knadh/koanf/issues/340
Add WatchWithContext() func for following providers:
appconfigconsuletcdfilenats
Other modifications:
- In
filepackage calls tofilepath.Clean()are removed asfilepath.EvalSymlinks()will callClean()on return. - Helper function,
inputFromConfig()is written and called along withProvider...funcs. As it's possible to callWatch()and thenLoad()which would cause issues.