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
import (
"fmt"
"encoding/json"
"fmt"
"net"
"time"
"github.com/vishvananda/netlink"
"github.com/containernetworking/cni/pkg/invoke"
"github.com/containernetworking/cni/pkg/skel"
"github.com/containernetworking/cni/pkg/types"
"github.com/containernetworking/cni/pkg/types/current"
"github.com/containernetworking/plugins/pkg/ns"
"github.com/containernetworking/plugins/pkg/testutils"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gexec"
"github.com/vishvananda/netlink"
"net"
"time"
)
var _ = Describe("bandwidth test", func() {

View File

@ -15,15 +15,8 @@ package bandwidth
// limitations under the License.
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"bytes"
"fmt"
"github.com/containernetworking/plugins/pkg/ns"
"github.com/onsi/gomega/gbytes"
"github.com/onsi/gomega/gexec"
"github.com/vishvananda/netlink"
"io"
"net"
"os/exec"
@ -31,6 +24,15 @@ import (
"strconv"
"strings"
"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) {

View File

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

View File

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