Add errors to config methods (#2015)

This commit is contained in:
Janos Dobronszki
2020-09-22 16:08:01 +02:00
committed by GitHub
parent 6e083b9aca
commit 354a169050
2 changed files with 13 additions and 9 deletions

View File

@@ -7,9 +7,9 @@ import (
// Config is an interface abstraction for dynamic configuration
type Config interface {
Get(path string, options ...Option) Value
Set(path string, val interface{}, options ...Option)
Delete(path string, options ...Option)
Get(path string, options ...Option) (Value, error)
Set(path string, val interface{}, options ...Option) error
Delete(path string, options ...Option) error
}
// Value represents a value of any type