Files
Wireguard-tools.js/main.go
Matheus Sampaio Queiroga 21312c7378
Some checks failed
Test / Test Linux (21.x) (pull_request) Failing after 1m58s
Test / Test Linux (latest) (pull_request) Failing after 2m1s
Test / Test Linux (18.x) (pull_request) Failing after 2m5s
Test / Test Linux (20.x) (pull_request) Failing after 2m4s
Refactor N-API addon and switch binding library
Replace the old `addon` package with `wg_addon` and switch the N-API
binding library from `abhisekp/napi-go` to
`Sirherobrine23/napi-go`.

This restructures the code to use `wgctrl` for Linux/Windows in
`wg_addon/wgctrl.go` and stubs a `wireguard-go` based implementation
for other Unix systems in `wg_addon/unix.go`. N-API registration and
common types are now in `wg_addon/addon.go`.

The implementation leverages features of the new N-API library, such as
struct tags for automatic marshalling and simplified async worker
creation.
2025-04-27 23:34:30 -03:00

6 lines
101 B
Go

package main
import _ "sirherobrine23.com.br/Wireguard/Wireguard-tools.js/wg_addon"
func main() {}