PaesslerAG / jsonpath

BSD 3-Clause "New" or "Revised" License
172 stars 37 forks source link

undefined: jsonpath.PlaceholderExtension, how to fix it? #36

Open fengnex opened 1 year ago

fengnex commented 1 year ago

One official example of jsonpath uses jsonpath.PlaceholderExtension, but when we ran it and got an error "undefined: jsonpath.PlaceholderExtension", how to fix it?

zeisss commented 5 months ago

Not part of the project and probably a year too late, but anyway: Did you import the module correctly? What example did you use?

PlaceholderExtension() seems to be defined here: https://github.com/PaesslerAG/jsonpath/blob/master/jsonpath.go#L65-L67 so generally it should work. The tests in https://github.com/PaesslerAG/jsonpath/blob/master/placeholder_test.go show an example usage.