how can i use js callback #1
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
i want to use like this:
js code:
let gomodule=require("./gomod.node");
gomodule.func(
function( fromGoObj){
console.info(fromGoObj)
}
);
then how can i write go code?
Your project has been very helpful to me. Thank you very much
Hey! Sorry for the super slow response on this.
I'm still developing the
js_native_api.go
to allow for this use-case, but it's not there just yet. Ultimately you'd need to make use of thenapi_call_function
/napi.CallFunction
API to do this.This isn't finalized, but the Go portion would look a little something like this once that's added: