summaryrefslogtreecommitdiffhomepage
path: root/ipc
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-14 09:09:52 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-14 09:09:52 +0200
commit3bf41b06ae6ec9a558d3b1f1f315509ccef97010 (patch)
tree2d0d03da4e9d344c5de5dc01f11b5900025dff35 /ipc
parent3147f000897be94066069c1a703272b7e282a015 (diff)
global: regroup all imports
Diffstat (limited to 'ipc')
-rw-r--r--ipc/uapi_bsd.go3
-rw-r--r--ipc/uapi_linux.go5
-rw-r--r--ipc/uapi_windows.go3
3 files changed, 7 insertions, 4 deletions
diff --git a/ipc/uapi_bsd.go b/ipc/uapi_bsd.go
index f66c386..75cc0e3 100644
--- a/ipc/uapi_bsd.go
+++ b/ipc/uapi_bsd.go
@@ -10,11 +10,12 @@ package ipc
import (
"errors"
"fmt"
- "golang.org/x/sys/unix"
"net"
"os"
"path"
"unsafe"
+
+ "golang.org/x/sys/unix"
)
var socketDirectory = "/var/run/wireguard"
diff --git a/ipc/uapi_linux.go b/ipc/uapi_linux.go
index 8af3d8c..a3c95ca 100644
--- a/ipc/uapi_linux.go
+++ b/ipc/uapi_linux.go
@@ -8,11 +8,12 @@ package ipc
import (
"errors"
"fmt"
- "golang.org/x/sys/unix"
- "golang.zx2c4.com/wireguard/rwcancel"
"net"
"os"
"path"
+
+ "golang.org/x/sys/unix"
+ "golang.zx2c4.com/wireguard/rwcancel"
)
var socketDirectory = "/var/run/wireguard"
diff --git a/ipc/uapi_windows.go b/ipc/uapi_windows.go
index 8f0268d..b3aeb26 100644
--- a/ipc/uapi_windows.go
+++ b/ipc/uapi_windows.go
@@ -6,8 +6,9 @@
package ipc
import (
- "github.com/Microsoft/go-winio"
"net"
+
+ "github.com/Microsoft/go-winio"
)
//TODO: replace these with actual standard windows error numbers from the win package