aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ringlogger
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 /ringlogger
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 'ringlogger')
-rw-r--r--ringlogger/dump_windows.go7
-rw-r--r--ringlogger/global.go3
-rw-r--r--ringlogger/ringlogger_windows.go3
3 files changed, 8 insertions, 5 deletions
diff --git a/ringlogger/dump_windows.go b/ringlogger/dump_windows.go
index 1ee1f016..7faf8ffc 100644
--- a/ringlogger/dump_windows.go
+++ b/ringlogger/dump_windows.go
@@ -6,12 +6,13 @@
package ringlogger
import (
- "golang.org/x/sys/windows"
- "golang.org/x/sys/windows/registry"
- "golang.zx2c4.com/wireguard/windows/conf"
"io"
"os"
"path"
+
+ "golang.org/x/sys/windows"
+ "golang.org/x/sys/windows/registry"
+ "golang.zx2c4.com/wireguard/windows/conf"
)
func DumpTo(out io.Writer, localSystem bool) error {
diff --git a/ringlogger/global.go b/ringlogger/global.go
index da79b6de..8d8f8ec8 100644
--- a/ringlogger/global.go
+++ b/ringlogger/global.go
@@ -6,9 +6,10 @@
package ringlogger
import (
- "golang.zx2c4.com/wireguard/windows/conf"
"log"
"path"
+
+ "golang.zx2c4.com/wireguard/windows/conf"
)
var Global *Ringlogger
diff --git a/ringlogger/ringlogger_windows.go b/ringlogger/ringlogger_windows.go
index 4c142e6a..e3b79cf9 100644
--- a/ringlogger/ringlogger_windows.go
+++ b/ringlogger/ringlogger_windows.go
@@ -8,7 +8,6 @@ package ringlogger
import (
"bytes"
"fmt"
- "golang.org/x/sys/windows"
"io"
"os"
"runtime"
@@ -16,6 +15,8 @@ import (
"sync/atomic"
"time"
"unsafe"
+
+ "golang.org/x/sys/windows"
)
const (