Manually reorganize import paths to segregate stdlib and 3rd-party packages

Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
Tibor Vass 2017-03-27 18:21:59 -07:00
parent 7b7ea8ab81
commit febbe38796
20 changed files with 25 additions and 29 deletions

View File

@ -2,7 +2,6 @@ package command
import (
"fmt"
"github.com/pkg/errors"
"io"
"net/http"
"os"
@ -21,6 +20,7 @@ import (
dopts "github.com/docker/docker/opts"
"github.com/docker/go-connections/sockets"
"github.com/docker/go-connections/tlsconfig"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/net/context"
)

View File

@ -1,7 +1,6 @@
package container
import (
"github.com/pkg/errors"
"io"
"net/http/httputil"
@ -10,6 +9,7 @@ import (
"github.com/docker/docker/cli"
"github.com/docker/docker/cli/command"
"github.com/docker/docker/pkg/signal"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/net/context"
)

View File

@ -2,11 +2,11 @@ package container
import (
"fmt"
"github.com/pkg/errors"
"github.com/docker/docker/cli"
"github.com/docker/docker/cli/command"
"github.com/docker/docker/pkg/archive"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/net/context"
)

View File

@ -1,11 +1,11 @@
package container
import (
"github.com/pkg/errors"
"io"
"github.com/docker/docker/cli"
"github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/net/context"
)

View File

@ -2,11 +2,11 @@ package container
import (
"fmt"
"github.com/pkg/errors"
"strings"
"github.com/docker/docker/cli"
"github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/net/context"
)

View File

@ -2,11 +2,11 @@ package container
import (
"fmt"
"github.com/pkg/errors"
"strings"
"github.com/docker/docker/cli"
"github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/net/context"
)

View File

@ -2,12 +2,12 @@ package container
import (
"fmt"
"github.com/pkg/errors"
"strings"
"time"
"github.com/docker/docker/cli"
"github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/net/context"
)

View File

@ -2,12 +2,12 @@ package container
import (
"fmt"
"github.com/pkg/errors"
"strings"
"github.com/docker/docker/api/types"
"github.com/docker/docker/cli"
"github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/net/context"
)

View File

@ -2,7 +2,6 @@ package container
import (
"fmt"
"github.com/pkg/errors"
"io"
"net/http/httputil"
"os"
@ -18,6 +17,7 @@ import (
"github.com/docker/docker/pkg/promise"
"github.com/docker/docker/pkg/signal"
"github.com/docker/libnetwork/resolvconf/dns"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"golang.org/x/net/context"

View File

@ -2,7 +2,6 @@ package container
import (
"fmt"
"github.com/pkg/errors"
"io"
"strings"
"sync"
@ -14,6 +13,7 @@ import (
"github.com/docker/docker/cli"
"github.com/docker/docker/cli/command"
"github.com/docker/docker/cli/command/formatter"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/net/context"
)

View File

@ -2,7 +2,6 @@ package container
import (
"encoding/json"
"github.com/pkg/errors"
"io"
"strings"
"sync"
@ -12,6 +11,7 @@ import (
"github.com/docker/docker/api/types"
"github.com/docker/docker/cli/command/formatter"
"github.com/docker/docker/client"
"github.com/pkg/errors"
"golang.org/x/net/context"
)

View File

@ -2,12 +2,12 @@ package container
import (
"fmt"
"github.com/pkg/errors"
"strings"
"time"
"github.com/docker/docker/cli"
"github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/net/context"
)

View File

@ -2,11 +2,11 @@ package container
import (
"fmt"
"github.com/pkg/errors"
"strings"
"github.com/docker/docker/cli"
"github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/net/context"
)

View File

@ -2,7 +2,6 @@ package container
import (
"fmt"
"github.com/pkg/errors"
"strings"
containertypes "github.com/docker/docker/api/types/container"
@ -10,6 +9,7 @@ import (
"github.com/docker/docker/cli/command"
"github.com/docker/docker/opts"
runconfigopts "github.com/docker/docker/runconfig/opts"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/net/context"
)

View File

@ -2,11 +2,11 @@ package container
import (
"fmt"
"github.com/pkg/errors"
"strings"
"github.com/docker/docker/cli"
"github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/net/context"
)

View File

@ -2,16 +2,15 @@ package image
import (
"fmt"
"github.com/pkg/errors"
"strings"
"golang.org/x/net/context"
"github.com/docker/distribution/reference"
"github.com/docker/docker/cli"
"github.com/docker/docker/cli/command"
"github.com/docker/docker/registry"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/net/context"
)
type pullOptions struct {

View File

@ -1,14 +1,13 @@
package image
import (
"github.com/pkg/errors"
"io"
"golang.org/x/net/context"
"github.com/docker/docker/cli"
"github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/net/context"
)
type saveOptions struct {

View File

@ -1,12 +1,12 @@
package command
import (
"github.com/pkg/errors"
"io"
"os"
"runtime"
"github.com/docker/docker/pkg/term"
"github.com/pkg/errors"
)
// InStream is an input stream used by the DockerCli to read user input

View File

@ -2,13 +2,12 @@ package swarm
import (
"fmt"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/cli"
"github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/net/context"
)

View File

@ -3,16 +3,15 @@ package swarm
import (
"bufio"
"fmt"
"github.com/pkg/errors"
"io"
"strings"
"github.com/spf13/cobra"
"golang.org/x/crypto/ssh/terminal"
"github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/cli"
"github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/crypto/ssh/terminal"
"golang.org/x/net/context"
)