etcd: format import order

golang CodeReviewComments:
https://github.com/golang/go/wiki/CodeReviewComments#imports

Signed-off-by: demoManito <1430482733@qq.com>
This commit is contained in:
demoManito 2022-09-20 11:06:33 +08:00
parent 8650ae83f7
commit f67ec10779
7 changed files with 24 additions and 20 deletions

View File

@ -18,11 +18,11 @@ go get go.etcd.io/etcd/v3/client
package main
import (
"log"
"time"
"context"
"go.etcd.io/etcd/v3/client"
"context"
"log"
"time"
"go.etcd.io/etcd/v3/client"
)
func main() {

View File

@ -16,11 +16,11 @@ package clientv3
import (
"context"
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
"google.golang.org/grpc"
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
)
type (

View File

@ -1,10 +1,12 @@
package clientv3
import (
"testing"
grpccredentials "google.golang.org/grpc/credentials"
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
"go.etcd.io/etcd/client/v3/credentials"
grpccredentials "google.golang.org/grpc/credentials"
"testing"
)
type dummyAuthTokenBundle struct{}

View File

@ -15,9 +15,10 @@
package main
import (
"go.etcd.io/etcd/raft/v3/raftpb"
"reflect"
"testing"
"go.etcd.io/etcd/raft/v3/raftpb"
)
func TestProcessMessages(t *testing.T) {

View File

@ -19,7 +19,6 @@ package v3discovery
import (
"context"
"errors"
"math"
"path"
"sort"
@ -27,11 +26,11 @@ import (
"strings"
"time"
"go.etcd.io/etcd/client/pkg/v3/types"
"go.etcd.io/etcd/client/v3"
"github.com/jonboulle/clockwork"
"go.uber.org/zap"
"go.etcd.io/etcd/client/pkg/v3/types"
clientv3 "go.etcd.io/etcd/client/v3"
)
const (

View File

@ -15,9 +15,10 @@
package v3rpc
import (
"testing"
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
"testing"
)
func TestCheckRangeRequest(t *testing.T) {

View File

@ -18,14 +18,15 @@ import (
"bytes"
"context"
"crypto/tls"
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
clientv3test "go.etcd.io/etcd/tests/v3/integration/clientv3"
"testing"
"time"
"go.etcd.io/etcd/client/v3"
integration2 "go.etcd.io/etcd/tests/v3/framework/integration"
"google.golang.org/grpc"
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
clientv3 "go.etcd.io/etcd/client/v3"
integration2 "go.etcd.io/etcd/tests/v3/framework/integration"
clientv3test "go.etcd.io/etcd/tests/v3/integration/clientv3"
)
func TestFailover(t *testing.T) {