We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I try to use jsluice as a package I get the error message: type jsluice.object has no field or method getKeys when I do something like:
type jsluice.object has no field or method getKeys
secondArg := arguments.NamedChild(1) if secondArg.Type() == "object" { params := secondArg.AsObject().getKeys() m.Method = "POST" m.BodyParams = params }
I've used url-match-jquery.go as a reference to create a custom url matcher for a project that uses a custom function to call api endpoints.
I likely am doing something wrong myself as I do not have that much experience with go, what could be the problem here?
The text was updated successfully, but these errors were encountered:
Hey @YouGina! Thank you for raising an issue!
This looks to be an oversight on my part with not exporting some of the types that jsluice uses internally.
jsluice
As of this commit, you should be able to call secondArg.AsObject().GetKeys() (note the capital G on GetKeys).
secondArg.AsObject().GetKeys()
G
GetKeys
Thanks for bringing this to my attention!
Sorry, something went wrong.
Hi @bf-tomnomnom , thank you for taking the time to look into this issue!
No branches or pull requests
When I try to use jsluice as a package I get the error message:
type jsluice.object has no field or method getKeys
when I do something like:I've used url-match-jquery.go as a reference to create a custom url matcher for a project that uses a custom function to call api endpoints.
I likely am doing something wrong myself as I do not have that much experience with go, what could be the problem here?
The text was updated successfully, but these errors were encountered: