aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/ui.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-12-09 17:53:59 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-12-09 23:13:56 +0100
commit182247f5c830f93bfdb2a843a0ce3d394008c6d0 (patch)
treea2e3c0356c6c5ff2fcb8b572654d39e4735c4850 /ui/ui.go
parentbuild: update to go 1.17.4 and drop upstreamed patches (diff)
downloadwireguard-windows-182247f5c830f93bfdb2a843a0ce3d394008c6d0.tar.xz
wireguard-windows-182247f5c830f93bfdb2a843a0ce3d394008c6d0.zip
global: apply gofumpt
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/ui.go')
-rw-r--r--ui/ui.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/ui.go b/ui/ui.go
index 7e910474..7f82e7ae 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -20,10 +20,12 @@ import (
"golang.zx2c4.com/wireguard/windows/version"
)
-var noTrayAvailable = false
-var shouldQuitManagerWhenExiting = false
-var startTime = time.Now()
-var IsAdmin = false // A global, because this really is global for the process
+var (
+ noTrayAvailable = false
+ shouldQuitManagerWhenExiting = false
+ startTime = time.Now()
+ IsAdmin = false // A global, because this really is global for the process
+)
func RunUI() {
runtime.LockOSThread()