meta/bandwidth: group and sort imports

ref: https://github.com/golang/go/wiki/CodeReviewComments#imports
This commit is contained in:
Gabe Rosenhouse 2018-02-17 15:19:31 -08:00 committed by Gabriel Rosenhouse
parent dce91d11d6
commit 59fa37252f
4 changed files with 21 additions and 14 deletions

View File

@ -15,21 +15,23 @@
package bandwidth package bandwidth
import ( import (
"fmt"
"encoding/json" "encoding/json"
"fmt"
"net"
"time"
"github.com/vishvananda/netlink"
"github.com/containernetworking/cni/pkg/invoke" "github.com/containernetworking/cni/pkg/invoke"
"github.com/containernetworking/cni/pkg/skel" "github.com/containernetworking/cni/pkg/skel"
"github.com/containernetworking/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
"github.com/containernetworking/cni/pkg/types/current" "github.com/containernetworking/cni/pkg/types/current"
"github.com/containernetworking/plugins/pkg/ns" "github.com/containernetworking/plugins/pkg/ns"
"github.com/containernetworking/plugins/pkg/testutils" "github.com/containernetworking/plugins/pkg/testutils"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/onsi/gomega/gexec" "github.com/onsi/gomega/gexec"
"github.com/vishvananda/netlink"
"net"
"time"
) )
var _ = Describe("bandwidth test", func() { var _ = Describe("bandwidth test", func() {

View File

@ -15,15 +15,8 @@ package bandwidth
// limitations under the License. // limitations under the License.
import ( import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"bytes" "bytes"
"fmt" "fmt"
"github.com/containernetworking/plugins/pkg/ns"
"github.com/onsi/gomega/gbytes"
"github.com/onsi/gomega/gexec"
"github.com/vishvananda/netlink"
"io" "io"
"net" "net"
"os/exec" "os/exec"
@ -31,6 +24,15 @@ import (
"strconv" "strconv"
"strings" "strings"
"testing" "testing"
"github.com/containernetworking/plugins/pkg/ns"
"github.com/onsi/gomega/gbytes"
"github.com/onsi/gomega/gexec"
"github.com/vishvananda/netlink"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
) )
func TestTBF(t *testing.T) { func TestTBF(t *testing.T) {

View File

@ -16,10 +16,12 @@ package bandwidth
import ( import (
"fmt" "fmt"
"github.com/containernetworking/plugins/pkg/ip"
"github.com/vishvananda/netlink"
"net" "net"
"syscall" "syscall"
"github.com/containernetworking/plugins/pkg/ip"
"github.com/vishvananda/netlink"
) )
const latencyInMillis = 25 const latencyInMillis = 25

View File

@ -24,6 +24,7 @@ import (
"github.com/containernetworking/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
"github.com/containernetworking/cni/pkg/types/current" "github.com/containernetworking/cni/pkg/types/current"
"github.com/containernetworking/cni/pkg/version" "github.com/containernetworking/cni/pkg/version"
"github.com/vishvananda/netlink" "github.com/vishvananda/netlink"
) )