@@ -28,7 +28,7 @@ func Get(obj map[string]interface{}, expression string) ([]interface{}, error) {
28
28
return nil , fmt .Errorf ("failed to marshal input to json: %w" , err )
29
29
}
30
30
31
- klog .V (7 ).Info ("jsonpath.Get input as json:\n %s" , jsonBytes )
31
+ klog .V (7 ).Infof ("jsonpath.Get input as json:\n %s" , jsonBytes )
32
32
33
33
// parse json into an ajson node
34
34
root , err := ajson .Unmarshal (jsonBytes )
@@ -52,7 +52,7 @@ func Get(obj map[string]interface{}, expression string) ([]interface{}, error) {
52
52
return nil , fmt .Errorf ("failed to marshal jsonpath result to json: %w" , err )
53
53
}
54
54
55
- klog .V (7 ).Info ("jsonpath.Get output as json:\n %s" , jsonBytes )
55
+ klog .V (7 ).Infof ("jsonpath.Get output as json:\n %s" , jsonBytes )
56
56
57
57
// parse json back into a Go primitive
58
58
var value interface {}
@@ -77,7 +77,7 @@ func Set(obj map[string]interface{}, expression string, value interface{}) (int,
77
77
return 0 , fmt .Errorf ("failed to marshal input to json: %w" , err )
78
78
}
79
79
80
- klog .V (7 ).Info ("jsonpath.Set input as json:\n %s" , jsonBytes )
80
+ klog .V (7 ).Infof ("jsonpath.Set input as json:\n %s" , jsonBytes )
81
81
82
82
// parse json into an ajson node
83
83
root , err := ajson .Unmarshal (jsonBytes )
@@ -138,7 +138,7 @@ func Set(obj map[string]interface{}, expression string, value interface{}) (int,
138
138
return 0 , fmt .Errorf ("failed to marshal jsonpath result to json: %w" , err )
139
139
}
140
140
141
- klog .V (7 ).Info ("jsonpath.Set output as json:\n %s" , jsonBytes )
141
+ klog .V (7 ).Infof ("jsonpath.Set output as json:\n %s" , jsonBytes )
142
142
143
143
// parse json back into the input map
144
144
err = yaml .Unmarshal (jsonBytes , & obj )
0 commit comments