mirror of
https://github.com/go-micro/go-micro.git
synced 2025-08-04 21:42:57 +02:00
break config.Get and return error with value
This commit is contained in:
@ -30,8 +30,8 @@ func newValues(ch *source.ChangeSet) (reader.Values, error) {
|
||||
return &jsonValues{ch, sj}, nil
|
||||
}
|
||||
|
||||
func (j *jsonValues) Get(path ...string) reader.Value {
|
||||
return &jsonValue{j.sj.GetPath(path...)}
|
||||
func (j *jsonValues) Get(path ...string) (reader.Value, error) {
|
||||
return &jsonValue{j.sj.GetPath(path...)}, nil
|
||||
}
|
||||
|
||||
func (j *jsonValues) Del(path ...string) {
|
||||
|
Reference in New Issue
Block a user