1
0
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:
asim
2025-05-04 21:31:17 +01:00
parent 60474ed38f
commit 2388f662cf
9 changed files with 44 additions and 20 deletions

View File

@ -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) {