wgo

module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2026 License: MIT

README

WireGuard library for Go

Go Reference

[!IMPORTANT] This project is a fork of the original wireguard-go project with some modifications. All credit goes to the original wireguard-go authors.

Things done

  • replaced the built-in TUN and conn implementations with reusable tuntap and batchudp libraries
  • support on-the-fly attach/detach/swap operations for Bind and Tun instances
  • added usage examples
  • added Device configuration methods matching UAPI get/set options
  • added leveled logging
  • implemented amnesiawg-go-compatible obfuscation
    • added support for per-peer obfuscation options (with a nuance)
  • added more end-to-end and compatibility tests with other WireGuard implementations
  • added performance tests with a comparison against other WireGuard implementations
  • WASM builds supported

TODO

Directories

Path Synopsis
cmd
compat_wgo_peer command
examples
http_request command
native_tun_pair command
tcp_pingpong command
udp_pingpong command
web_admin command
ipc
namedpipe
Package namedpipe implements a net.Conn and net.Listener around Windows named pipes.
Package namedpipe implements a net.Conn and net.Listener around Windows named pipes.
Package replay implements an efficient anti-replay algorithm as specified in RFC 6479.
Package replay implements an efficient anti-replay algorithm as specified in RFC 6479.
Package rwcancel implements cancelable read/write operations on a file descriptor.
Package rwcancel implements cancelable read/write operations on a file descriptor.
tests

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL