{"id":27054940,"url":"https://github.com/aschmidt75/go-wg-wrapper","last_synced_at":"2026-06-23T22:03:48.055Z","repository":{"id":57563989,"uuid":"332217502","full_name":"aschmidt75/go-wg-wrapper","owner":"aschmidt75","description":"golang wireguard helper library","archived":false,"fork":false,"pushed_at":"2021-04-07T16:09:36.000Z","size":2990,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-15T00:43:34.661Z","etag":null,"topics":["go","wireguard"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aschmidt75.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-23T13:31:35.000Z","updated_at":"2024-05-04T15:10:19.000Z","dependencies_parsed_at":"2022-09-16T13:35:14.709Z","dependency_job_id":null,"html_url":"https://github.com/aschmidt75/go-wg-wrapper","commit_stats":null,"previous_names":["aschmidt75/go-wg-helper"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/aschmidt75/go-wg-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschmidt75%2Fgo-wg-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschmidt75%2Fgo-wg-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschmidt75%2Fgo-wg-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschmidt75%2Fgo-wg-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aschmidt75","download_url":"https://codeload.github.com/aschmidt75/go-wg-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschmidt75%2Fgo-wg-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34708283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","wireguard"],"created_at":"2025-04-05T09:17:56.980Z","updated_at":"2026-06-23T22:03:48.038Z","avatar_url":"https://github.com/aschmidt75.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-wg-wrapper\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/aschmidt75/go-wg-wrapper)](https://goreportcard.com/report/github.com/aschmidt75/go-wg-wrapper)\n![Go](https://github.com/aschmidt75/go-wg-wrapper/workflows/Go/badge.svg)\n\nThis is a convenience wrapper around\n\n* `/sbin/ip`\n* the go [wgctrl](https://github.com/WireGuard/wgctrl-go) lib\n\nto easily \n\n* create and delete wireguard interfaces,\n* configure them with keys, endpoints etc.,\n* manage peers\n\nIt does not have a CLI but is intended as a library only.\nSee [examples/main.go](examples/main.go) for details.\n\n# Build \n\nThis builds on Linux only because it is intended primarily for linux only.\n\n# Test\n\ne.g. use [multipass](https://multipass.run/) to launch an ubuntu lts named wgtest:\n\n```bash\n$ multipass launch -c 1 -m 512M -n wgtest --cloud-init scripts/multipass-cloudinit.yaml lts\n$ multipass mount $(pwd) wgtest:/mnt\n$ multipass shell wgtest\nubuntu@wgtest:~$ sudo -i\nroot@wgtest:~# cd /mnt\n```\n\nCloud-init script will install wireguard tools and go. Please run go / the binary as root since\nit calls `/sbin/ip` and accesses wireguard via netlink.\n\n```bash\n$ go test -cover ./pkg/...\nok  \tgithub.com/aschmidt75/go-wg-wrapper/pkg/wgwrapper\t(cached)\tcoverage: 72.0% of statements\n```\n\n# Contribute\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n# License\n\nCopyright 2020,2021 @aschmidt75 Licensed under the Apache License, Version 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faschmidt75%2Fgo-wg-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faschmidt75%2Fgo-wg-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faschmidt75%2Fgo-wg-wrapper/lists"}