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

Go library for building Node.js Native Addons using Node-API

Results 3 napi-go issues
Sort by recently updated
recently updated
newest added

I'm on an m1 mac and running below command when this error occurs. `CGO_LDFLAGS_ALLOW=-Wl,-no_pie GOOS=darwin GOARCH=arm64 go build -buildmode=c-shared -o "example.node" -a ./cmd` ``` # github.com/akshayganeshen/napi-go ../../../../go/pkg/mod/github.com/akshayganeshen/[email protected]/async_work.go:9:9: undefined: NapiGoAsyncWorkID ../../../../go/pkg/mod/github.com/akshayganeshen/[email protected]/async_work.go:14:49:...

hello: I compiled on windows 10 ,node v16.17.1 reported: Module did not self-register.But on mac and linux version works well,help pls!

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...