1
0
mirror of https://github.com/rancher/os.git synced 2025-09-19 00:59:53 +00:00

Imports are organized in groups, with blank lines between them

https://github.com/golang/go/wiki/CodeReviewComments#imports
This commit is contained in:
niusmallnan
2018-10-23 12:13:32 +08:00
committed by niusmallnan
parent ef663b4e70
commit 823ae28a52
66 changed files with 174 additions and 162 deletions

View File

@@ -8,11 +8,11 @@ import (
"syscall"
"github.com/rancher/os/pkg/log"
"golang.org/x/net/context"
"github.com/codegangsta/cli"
"github.com/docker/libcompose/project"
"github.com/docker/libcompose/project/options"
"golang.org/x/net/context"
)
func ProjectPs(p project.APIProject, c *cli.Context) error {

View File

@@ -3,9 +3,10 @@ package command
import (
"errors"
"github.com/rancher/os/cmd/control/service/app"
"github.com/codegangsta/cli"
composeApp "github.com/docker/libcompose/cli/app"
"github.com/rancher/os/cmd/control/service/app"
)
func verifyOneOrMoreServices(c *cli.Context) error {

View File

@@ -4,15 +4,16 @@ import (
"fmt"
"strings"
"github.com/codegangsta/cli"
dockerApp "github.com/docker/libcompose/cli/docker/app"
"github.com/docker/libcompose/project"
"github.com/rancher/os/cmd/control/service/command"
"github.com/rancher/os/config"
"github.com/rancher/os/pkg/compose"
"github.com/rancher/os/pkg/log"
"github.com/rancher/os/pkg/util"
"github.com/rancher/os/pkg/util/network"
"github.com/codegangsta/cli"
dockerApp "github.com/docker/libcompose/cli/docker/app"
"github.com/docker/libcompose/project"
)
type projectFactory struct {