aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.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 /main.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 '')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index d6862177..1f031345 100644
--- a/main.go
+++ b/main.go
@@ -54,7 +54,7 @@ func fatalf(format string, v ...interface{}) {
fatal(l18n.Sprintf(format, v...))
}
-func info(title string, format string, v ...interface{}) {
+func info(title, format string, v ...interface{}) {
if log.Writer() == io.Discard {
windows.MessageBox(0, windows.StringToUTF16Ptr(l18n.Sprintf(format, v...)), windows.StringToUTF16Ptr(title), windows.MB_ICONINFORMATION)
} else {
@@ -63,7 +63,7 @@ func info(title string, format string, v ...interface{}) {
}
func usage() {
- var flags = [...]string{
+ flags := [...]string{
l18n.Sprintf("(no argument): elevate and install manager service"),
"/installmanagerservice",
"/installtunnelservice CONFIG_PATH",