global: regroup all imports

This commit is contained in:
Jason A. Donenfeld
2019-05-14 09:09:52 +02:00
parent 3147f00089
commit 3bf41b06ae
27 changed files with 70 additions and 44 deletions

View File

@@ -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"

View File

@@ -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"

View File

@@ -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