8000 Remove `Provider.Watch` · Issue #45 · knadh/koanf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Remove Provider.Watch #45
Closed
Closed
@aeneasr

Description

@aeneasr

Method Watch(func(event interface{}, err error)) error is actually not used by Koanf (unlike Load and ReadBytes) itself and serves no purpose except for adding bloat to providers who do not support Watching (e.g. env or flags). As an implementer of my own Provider I want to use a different watch mechanism with channels (instead of a callback) which means I have to implement two watchers, or not use channels.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0