@@ -35,7 +35,7 @@ func main() {
3535 Age: 21 ,
3636 }
3737
38- patch , _ , _ := jsonpatch.CreateJSONPatch (updated, original)
38+ patch , _ := jsonpatch.CreateJSONPatch (updated, original)
3939 fmt.Println (patch.String ())
4040}
4141```
@@ -75,7 +75,7 @@ func main() {
7575 {Position: " Senior Software Engineer" , Company: " Github" },
7676 }
7777
78- patch , _ , _ := jsonpatch.CreateJSONPatch (updated, original, jsonpatch.WithPredicate (jsonpatch.Funcs {
78+ patch , _ := jsonpatch.CreateJSONPatch (updated, original, jsonpatch.WithPredicate (jsonpatch.Funcs {
7979 ReplaceFunc: func (pointer jsonpatch.JSONPointer , value, _ interface {}) bool {
8080 // only update volunteering jobs
8181 if job , ok := value.(Job); ok {
@@ -130,7 +130,7 @@ func main() {
130130 {Position: " Software Engineer" , Company: " Github" },
131131 }
132132
133- patch , _ , _ := jsonpatch.CreateJSONPatch (updated, original.Jobs , jsonpatch.WithPrefix (jsonpatch.ParseJSONPointer (" /jobs" )))
133+ patch , _ := jsonpatch.CreateJSONPatch (updated, original.Jobs , jsonpatch.WithPrefix (jsonpatch.ParseJSONPointer (" /jobs" )))
134134 fmt.Println (patch.String ())
135135}
136136```
@@ -188,7 +188,7 @@ func main() {
188188 },
189189 }
190190
191- patch , _ , _ := jsonpatch.CreateJSONPatch (updated, original,
191+ patch , _ := jsonpatch.CreateJSONPatch (updated, original,
192192 jsonpatch.IgnoreSliceOrderWithPattern ([]jsonpatch.IgnorePattern {{Pattern: " /*" , JSONField: " company" }}),
193193 jsonpatch.IgnoreSliceOrder (),
194194 )
0 commit comments