1
0
mirror of https://github.com/rancher/os.git synced 2025-09-15 22:49:08 +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

@@ -5,10 +5,9 @@ import (
"log"
"strings"
"github.com/rancher/os/pkg/netconf"
"github.com/rancher/os/config/cloudinit/datasource"
"github.com/rancher/os/config/cloudinit/datasource/metadata"
"github.com/rancher/os/pkg/netconf"
)
const (

View File

@@ -19,12 +19,11 @@ import (
"strconv"
"strings"
"github.com/rancher/os/pkg/netconf"
"github.com/rancher/os/config/cloudinit/datasource"
"github.com/rancher/os/config/cloudinit/datasource/metadata"
"github.com/rancher/os/config/cloudinit/pkg"
"github.com/rancher/os/pkg/log"
"github.com/rancher/os/pkg/netconf"
)
const (

View File

@@ -17,14 +17,12 @@ package digitalocean
import (
"encoding/json"
"fmt"
"strconv"
"github.com/rancher/os/pkg/netconf"
"net"
"strconv"
"github.com/rancher/os/config/cloudinit/datasource"
"github.com/rancher/os/config/cloudinit/datasource/metadata"
"github.com/rancher/os/pkg/netconf"
)
const (

View File

@@ -20,12 +20,11 @@ import (
"reflect"
"testing"
"github.com/rancher/os/pkg/netconf"
"github.com/rancher/os/config/cloudinit/datasource"
"github.com/rancher/os/config/cloudinit/datasource/metadata"
"github.com/rancher/os/config/cloudinit/datasource/metadata/test"
"github.com/rancher/os/config/cloudinit/pkg"
"github.com/rancher/os/pkg/netconf"
)
func TestType(t *testing.T) {

View File

@@ -20,11 +20,10 @@ import (
"net"
"strings"
"github.com/rancher/os/pkg/netconf"
"github.com/rancher/os/config/cloudinit/datasource"
"github.com/rancher/os/config/cloudinit/datasource/metadata"
"github.com/rancher/os/config/cloudinit/pkg"
"github.com/rancher/os/pkg/netconf"
)
const (

View File

@@ -21,8 +21,6 @@ import (
"strconv"
"strings"
//"github.com/rancher/os/netconf"
"github.com/rancher/os/config/cloudinit/datasource"
"github.com/rancher/os/config/cloudinit/datasource/metadata"
)

View File

@@ -20,8 +20,6 @@ import (
"reflect"
"testing"
//"github.com/rancher/os/netconf"
"github.com/rancher/os/config/cloudinit/datasource"
"github.com/rancher/os/config/cloudinit/datasource/metadata"
"github.com/rancher/os/config/cloudinit/datasource/metadata/test"