pkg: Rename imports after making 'pkg' a module

find -name '*.go' | xargs sed --follow-symlinks -i 's|go.etcd.io/etcd/v3/pkg/|go.etcd.io/etcd/pkg/v3/|g'
go fmt ./...
This commit is contained in:
Piotr Tabor
2020-10-13 00:01:51 +02:00
parent bfa91d48af
commit de55bb6331
260 changed files with 368 additions and 366 deletions

View File

@@ -30,7 +30,7 @@ import (
"time"
"go.etcd.io/etcd/api/v3/version"
"go.etcd.io/etcd/v3/pkg/testutil"
"go.etcd.io/etcd/pkg/v3/testutil"
)
type actionAssertingHTTPClient struct {

View File

@@ -15,7 +15,7 @@
package client
import (
"go.etcd.io/etcd/v3/pkg/srv"
"go.etcd.io/etcd/pkg/v3/srv"
)
// Discoverer is an interface that wraps the Discover method.

View File

@@ -19,7 +19,7 @@ import (
"encoding/json"
"errors"
"fmt"
"go.etcd.io/etcd/v3/pkg/pathutil"
"go.etcd.io/etcd/pkg/v3/pathutil"
"net/http"
"net/url"
"strconv"

View File

@@ -18,7 +18,7 @@ import (
"net/http"
"testing"
"go.etcd.io/etcd/v3/pkg/testutil"
"go.etcd.io/etcd/pkg/v3/testutil"
)
func exampleEndpoints() []string { return nil }

View File

@@ -23,7 +23,7 @@ import (
"net/url"
"path"
"go.etcd.io/etcd/v3/pkg/types"
"go.etcd.io/etcd/pkg/v3/types"
)
var (

View File

@@ -23,7 +23,7 @@ import (
"reflect"
"testing"
"go.etcd.io/etcd/v3/pkg/types"
"go.etcd.io/etcd/pkg/v3/types"
)
func TestMembersAPIActionList(t *testing.T) {