aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-06-17 22:55:24 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-06-18 11:28:50 +0200
commit36cc38f69a9c292d83251e2af54394f1e7b19a39 (patch)
tree5cb19fb1d758195c29c2721b0d575cbae4f39f37
parentbuild: bump to go 1.17beta1 (diff)
downloadwireguard-windows-36cc38f69a9c292d83251e2af54394f1e7b19a39.tar.xz
wireguard-windows-36cc38f69a9c292d83251e2af54394f1e7b19a39.zip
global: go fmt for 1.17 build tags
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--gotext.go2
-rw-r--r--tunnel/firewall/types_windows_32.go1
-rw-r--r--tunnel/firewall/types_windows_64.go1
-rw-r--r--tunnel/winipcfg/types_32.go1
-rw-r--r--tunnel/winipcfg/types_64.go1
-rw-r--r--tunnel/winipcfg/types_test_32.go1
-rw-r--r--tunnel/winipcfg/types_test_64.go1
-rw-r--r--ui/confview.go2
8 files changed, 9 insertions, 1 deletions
diff --git a/gotext.go b/gotext.go
index 0ed7401c..0f3d14fd 100644
--- a/gotext.go
+++ b/gotext.go
@@ -1,4 +1,6 @@
+//go:build generate
// +build generate
+
//go:generate go run gotext.go
/* SPDX-License-Identifier: MIT
diff --git a/tunnel/firewall/types_windows_32.go b/tunnel/firewall/types_windows_32.go
index 83aced6e..7e852532 100644
--- a/tunnel/firewall/types_windows_32.go
+++ b/tunnel/firewall/types_windows_32.go
@@ -1,3 +1,4 @@
+//go:build 386 || arm
// +build 386 arm
/* SPDX-License-Identifier: MIT
diff --git a/tunnel/firewall/types_windows_64.go b/tunnel/firewall/types_windows_64.go
index 6e60aa5b..c4f21ee8 100644
--- a/tunnel/firewall/types_windows_64.go
+++ b/tunnel/firewall/types_windows_64.go
@@ -1,3 +1,4 @@
+//go:build amd64 || arm64
// +build amd64 arm64
/* SPDX-License-Identifier: MIT
diff --git a/tunnel/winipcfg/types_32.go b/tunnel/winipcfg/types_32.go
index 51a8d31c..ea748863 100644
--- a/tunnel/winipcfg/types_32.go
+++ b/tunnel/winipcfg/types_32.go
@@ -1,3 +1,4 @@
+//go:build 386 || arm
// +build 386 arm
/* SPDX-License-Identifier: MIT
diff --git a/tunnel/winipcfg/types_64.go b/tunnel/winipcfg/types_64.go
index 6623ce54..8de26465 100644
--- a/tunnel/winipcfg/types_64.go
+++ b/tunnel/winipcfg/types_64.go
@@ -1,3 +1,4 @@
+//go:build amd64 || arm64
// +build amd64 arm64
/* SPDX-License-Identifier: MIT
diff --git a/tunnel/winipcfg/types_test_32.go b/tunnel/winipcfg/types_test_32.go
index fa3f91d5..05676fd2 100644
--- a/tunnel/winipcfg/types_test_32.go
+++ b/tunnel/winipcfg/types_test_32.go
@@ -1,3 +1,4 @@
+//go:build 386 || arm
// +build 386 arm
/* SPDX-License-Identifier: MIT
diff --git a/tunnel/winipcfg/types_test_64.go b/tunnel/winipcfg/types_test_64.go
index d20cdb30..ca70f366 100644
--- a/tunnel/winipcfg/types_test_64.go
+++ b/tunnel/winipcfg/types_test_64.go
@@ -1,3 +1,4 @@
+//go:build amd64 || arm64
// +build amd64 arm64
/* SPDX-License-Identifier: MIT
diff --git a/ui/confview.go b/ui/confview.go
index f3ddbc9d..cc3bcad9 100644
--- a/ui/confview.go
+++ b/ui/confview.go
@@ -620,7 +620,7 @@ func (cv *ConfView) onTunnelChanged(tunnel *manager.Tunnel, state manager.Tunnel
}
func (cv *ConfView) SetTunnel(tunnel *manager.Tunnel) {
- cv.tunnel = tunnel //XXX: This races with the read in the updateTicker, but it's pointer-sized!
+ cv.tunnel = tunnel // XXX: This races with the read in the updateTicker, but it's pointer-sized!
var config conf.Config
var state manager.TunnelState