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.
6 lines
101 B
Go
6 lines
101 B
Go
package main
|
|
|
|
import _ "sirherobrine23.com.br/Wireguard/Wireguard-tools.js/wg_addon"
|
|
|
|
func main() {}
|