Registry / networking / wireguard-wgctrl

wireguard-wgctrl

JSON →
library0.0.0-20230429144221-925a1e7659e6gogounverified

A Go package for controlling WireGuard devices on multiple platforms.

go get golang.zx2c4.com/wireguard/wgctrl
INSTALL
IMPORT
SIG · WIREGUARD-WGCTRL
W
wireguard-wgctrl
networkinggov0.0.0-20230429144221-925a1e7659e6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

wgctrl
golang.zx2c4.com/wireguard/wgctrl

List all WireGuard devices.

package main import ( "fmt" "golang.zx2c4.com/wireguard/wgctrl" ) func main() { client, err := wgctrl.New() if err != nil { panic(err) } defer client.Close() devices, err := client.Devices() if err != nil { panic(err) } fmt.Println(devices) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20230429144221-925a1e7659e6latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
39 hits · last 30 days
node
36
Amazon
1
OpenAI (training)
1
Resources
wireguard-wgctrl — go get wireguard-wgctrl · libregistry