aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/version/version.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-01 11:14:12 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-01 11:14:12 +0200
commit2e4f8e31dad639e9e40b29552380d5ca4629d1bd (patch)
treeec8573073bf68253267ed741b60bf23b8e4554a3 /version/version.go
parentui: support clipboard copying for log items (diff)
downloadwireguard-windows-2e4f8e31dad639e9e40b29552380d5ca4629d1bd.tar.xz
wireguard-windows-2e4f8e31dad639e9e40b29552380d5ca4629d1bd.zip
version: dynamically get file version
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'version/version.go')
-rw-r--r--version/version.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/version/version.go b/version/version.go
deleted file mode 100644
index 951d2731..00000000
--- a/version/version.go
+++ /dev/null
@@ -1,20 +0,0 @@
-/* SPDX-License-Identifier: MIT
- *
- * Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
- */
-
-package version
-
-// #include "../version.h"
-import "C"
-import (
- "fmt"
- "golang.zx2c4.com/wireguard/device"
- "runtime"
-)
-
-const WireGuardWindowsVersion = C.WIREGUARD_WINDOWS_VERSION
-
-func UserAgent() string {
- return fmt.Sprintf("WireGuard/%s (wireguard-go %s; %s; %s; %s)", WireGuardWindowsVersion, device.WireGuardGoVersion, OsName(), runtime.Version(), runtime.GOARCH)
-}