cosmetic: goimports -w .

This commit is contained in:
Matthias Radestock committed 2015-07-03 20:41:35 +01:00
1 parent 4dbd657a26
commit bf73029d15
11 files changed
+24 -13

No files matched your search

+1
View File
@@ -2,6 +2,7 @@ package ipam
import ( import (
"fmt" "fmt"
"github.com/weaveworks/weave/ipam/address" "github.com/weaveworks/weave/ipam/address"
) )
+1
View File
@@ -2,6 +2,7 @@ package paxos
import ( import (
"fmt" "fmt"
"github.com/weaveworks/weave/router" "github.com/weaveworks/weave/router"
) )
+2 -1
View File
@@ -2,10 +2,11 @@ package paxos
import ( import (
"fmt" "fmt"
"github.com/weaveworks/weave/router"
"math/rand" "math/rand"
"testing" "testing"
"time" "time"
"github.com/weaveworks/weave/router"
) )
type TestNode struct { type TestNode struct {
+4 -3
View File
@@ -1,15 +1,16 @@
package router package router
import ( import (
"code.google.com/p/go-bit/bit"
"code.google.com/p/go.crypto/nacl/box"
"code.google.com/p/go.crypto/nacl/secretbox"
"crypto/rand" "crypto/rand"
"crypto/sha256" "crypto/sha256"
"encoding/binary" "encoding/binary"
"encoding/gob" "encoding/gob"
"fmt" "fmt"
"sync" "sync"
"code.google.com/p/go-bit/bit"
"code.google.com/p/go.crypto/nacl/box"
"code.google.com/p/go.crypto/nacl/secretbox"
) )
func GenerateKeyPair() (publicKey, privateKey *[32]byte, err error) { func GenerateKeyPair() (publicKey, privateKey *[32]byte, err error) {
+3 -2
View File
@@ -2,10 +2,11 @@ package router
import ( import (
"bytes" "bytes"
"github.com/google/gopacket"
"github.com/google/gopacket/layers"
"log" "log"
"net" "net"
"github.com/google/gopacket"
"github.com/google/gopacket/layers"
) )
type EthernetDecoder struct { type EthernetDecoder struct {
+3 -2
View File
@@ -1,10 +1,11 @@
package router package router
import ( import (
"github.com/google/gopacket"
"github.com/google/gopacket/layers"
"syscall" "syscall"
"time" "time"
"github.com/google/gopacket"
"github.com/google/gopacket/layers"
) )
type ForwardedFrame struct { type ForwardedFrame struct {
+2 -1
View File
@@ -1,8 +1,9 @@
package router package router
import ( import (
wt "github.com/weaveworks/weave/testing"
"testing" "testing"
wt "github.com/weaveworks/weave/testing"
) )
func TestFieldValidator(t *testing.T) { func TestFieldValidator(t *testing.T) {
+2 -1
View File
@@ -6,8 +6,9 @@
package router package router
import ( import (
wt "github.com/weaveworks/weave/testing"
"testing" "testing"
wt "github.com/weaveworks/weave/testing"
) )
// Add to peers a connection from peers.ourself to p // Add to peers a connection from peers.ourself to p
+1
View File
@@ -2,6 +2,7 @@ package router
import ( import (
"fmt" "fmt"
"github.com/google/gopacket/pcap" "github.com/google/gopacket/pcap"
) )
+2 -1
View File
@@ -2,9 +2,10 @@ package router
import ( import (
"fmt" "fmt"
wt "github.com/weaveworks/weave/testing"
"math/rand" "math/rand"
"testing" "testing"
wt "github.com/weaveworks/weave/testing"
) )
// TODO we should also test: // TODO we should also test:
+3 -2
View File
@@ -1,11 +1,12 @@
package router package router
import ( import (
"github.com/google/gopacket"
"github.com/google/gopacket/layers"
"log" "log"
"net" "net"
"syscall" "syscall"
"github.com/google/gopacket"
"github.com/google/gopacket/layers"
) )
type UDPSender interface { type UDPSender interface {