aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-14 09:09:01 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-14 09:20:29 +0200
commit3fef806e674f913b712e834269f20be1e678677b (patch)
tree8a16669f242614a3eb4f980ad499adc9ba73638a /ui
parentservice: reuse golang.org/x/sys/windows address family constants (diff)
downloadwireguard-windows-3fef806e674f913b712e834269f20be1e678677b.tar.xz
wireguard-windows-3fef806e674f913b712e834269f20be1e678677b.zip
global: regroup all imports
Diffstat (limited to 'ui')
-rw-r--r--ui/iconprovider.go5
-rw-r--r--ui/listview.go3
-rw-r--r--ui/tray.go3
-rw-r--r--ui/tunnelspage.go9
-rw-r--r--ui/ui.go7
-rw-r--r--ui/updatepage.go1
6 files changed, 17 insertions, 11 deletions
diff --git a/ui/iconprovider.go b/ui/iconprovider.go
index 97738f83..3b3fd13d 100644
--- a/ui/iconprovider.go
+++ b/ui/iconprovider.go
@@ -7,12 +7,13 @@ package ui
import (
"fmt"
+ "path"
+ "syscall"
+
"github.com/lxn/walk"
"github.com/lxn/win"
"golang.org/x/sys/windows"
"golang.zx2c4.com/wireguard/windows/service"
- "path"
- "syscall"
)
type widthAndState struct {
diff --git a/ui/listview.go b/ui/listview.go
index 6870e91c..99e88188 100644
--- a/ui/listview.go
+++ b/ui/listview.go
@@ -6,10 +6,11 @@
package ui
import (
- "golang.zx2c4.com/wireguard/windows/conf"
"sort"
"sync/atomic"
+ "golang.zx2c4.com/wireguard/windows/conf"
+
"github.com/lxn/walk"
"golang.zx2c4.com/wireguard/windows/service"
)
diff --git a/ui/tray.go b/ui/tray.go
index f2c387e4..698f14de 100644
--- a/ui/tray.go
+++ b/ui/tray.go
@@ -7,11 +7,12 @@ package ui
import (
"fmt"
- "golang.zx2c4.com/wireguard/windows/conf"
"sort"
"strings"
"time"
+ "golang.zx2c4.com/wireguard/windows/conf"
+
"github.com/lxn/walk"
"golang.zx2c4.com/wireguard/windows/service"
)
diff --git a/ui/tunnelspage.go b/ui/tunnelspage.go
index ab0254c0..192f6420 100644
--- a/ui/tunnelspage.go
+++ b/ui/tunnelspage.go
@@ -8,15 +8,16 @@ package ui
import (
"archive/zip"
"fmt"
- "github.com/lxn/walk"
- "github.com/lxn/win"
- "golang.zx2c4.com/wireguard/windows/conf"
- "golang.zx2c4.com/wireguard/windows/service"
"io/ioutil"
"os"
"path/filepath"
"sort"
"strings"
+
+ "github.com/lxn/walk"
+ "github.com/lxn/win"
+ "golang.zx2c4.com/wireguard/windows/conf"
+ "golang.zx2c4.com/wireguard/windows/service"
)
type TunnelsPage struct {
diff --git a/ui/ui.go b/ui/ui.go
index 972a7087..741f254c 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -7,13 +7,14 @@ package ui
import (
"fmt"
+ "runtime"
+ "runtime/debug"
+ "time"
+
"github.com/lxn/walk"
"github.com/lxn/win"
"golang.zx2c4.com/wireguard/windows/service"
"golang.zx2c4.com/wireguard/windows/version"
- "runtime"
- "runtime/debug"
- "time"
)
var noTrayAvailable = false
diff --git a/ui/updatepage.go b/ui/updatepage.go
index b228fb2d..b50427ce 100644
--- a/ui/updatepage.go
+++ b/ui/updatepage.go
@@ -7,6 +7,7 @@ package ui
import (
"fmt"
+
"github.com/lxn/walk"
"golang.zx2c4.com/wireguard/windows/service"
"golang.zx2c4.com/wireguard/windows/updater"