napi-go icon indicating copy to clipboard operation
napi-go copied to clipboard

how can i use js callback

Open liuxingpluck opened this issue 2 years ago • 1 comments

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

liuxingpluck avatar Oct 10 '22 11:10 liuxingpluck