Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fengnex opened this issue Apr 30, 2023 · 1 comment
Open

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

fengnex opened this issue Apr 30, 2023 · 1 comment

Comments

@fengnex
Copy link

fengnex commented Apr 30, 2023

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
Copy link
Contributor

zeisss commented Apr 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants