The entire module has been refactored to look more like a mix of Go and node-addon-api, with more Go-level typing, and some tweaks to cause fewer panics between calls.
New features
Call go functions directly from Javascript code.
abstraction Javascript primitives.
move cgo code to internal/ folder.
Convert go struct, slice and primitives to Javascript primitives, Object and Array.
Go safety call Javascript functions.
on nexts commits
Promise and Async Worker
Typed Array
Array Buffer
Dataview
Node Version
Class
Thread Safe Functions
The entire module has been refactored to look more like a mix of Go and `node-addon-api`, with more Go-level typing, and some tweaks to cause fewer panics between calls.
## New features
- Call go functions directly from Javascript code.
- abstraction Javascript primitives.
- move cgo code to `internal/` folder.
- Convert go struct, slice and primitives to Javascript primitives, Object and Array.
- Go safety call Javascript functions.
## on nexts commits
- Promise and Async Worker
- Typed Array
- Array Buffer
- Dataview
- Node Version
- Class
- Thread Safe Functions
- Added entry.go to define the N-API module and its initialization function.
- Created entry.h to declare the initializeModule function for N-API.
- Introduced napi_module.c to register the module with NAPI.
- Developed a test main.go to demonstrate the registration of a test function and property within the N-API module.
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
Introduce the `js` package with utilities to automatically convert
Go values (structs, slices, functions, etc.) to NAPI values and
vice-versa using reflection.
This simplifies binding Go functions and data structures for use
in Node.js. Includes support for struct tags like `napi:"name,omitempty"`.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The entire module has been refactored to look more like a mix of Go and
node-addon-api, with more Go-level typing, and some tweaks to cause fewer panics between calls.New features
internal/folder.on nexts commits
a8b789af77to9ed23341ac9ed23341actod439561545