Fix style: Organize imports in groups

Performed by "goimports" tool
Style conventions: https://github.com/golang/go/wiki/CodeReviewComments#imports
This commit is contained in:
Mikhail Zholobov 2016-12-11 21:13:37 +02:00
parent 319b85cb7a
commit dde445bd0d
No known key found for this signature in database
GPG Key ID: 467E2D8B15AE6DB3
20 changed files with 40 additions and 20 deletions

View File

@ -2,10 +2,11 @@ package common
import ( import (
"fmt" "fmt"
"github.com/mitchellh/packer/packer"
"os" "os"
"path/filepath" "path/filepath"
"regexp" "regexp"
"github.com/mitchellh/packer/packer"
) )
// This is the common builder ID to all of these artifacts. // This is the common builder ID to all of these artifacts.

View File

@ -1,10 +1,11 @@
package common package common
import ( import (
"github.com/mitchellh/packer/common"
"io/ioutil" "io/ioutil"
"os" "os"
"testing" "testing"
"github.com/mitchellh/packer/common"
) )
func TestOutputConfigPrepare(t *testing.T) { func TestOutputConfigPrepare(t *testing.T) {

View File

@ -2,9 +2,10 @@ package common
import ( import (
"fmt" "fmt"
"log"
"github.com/mitchellh/multistep" "github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"
"log"
) )
// This step attaches a floppy to the virtual machine. // This step attaches a floppy to the virtual machine.

View File

@ -1,10 +1,11 @@
package common package common
import ( import (
"github.com/mitchellh/multistep"
"io/ioutil" "io/ioutil"
"os" "os"
"testing" "testing"
"github.com/mitchellh/multistep"
) )
func TestStepAttachFloppy_impl(t *testing.T) { func TestStepAttachFloppy_impl(t *testing.T) {

View File

@ -2,6 +2,7 @@ package common
import ( import (
"fmt" "fmt"
"github.com/mitchellh/multistep" "github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"
) )

View File

@ -1,10 +1,11 @@
package common package common
import ( import (
"github.com/mitchellh/multistep"
"io/ioutil" "io/ioutil"
"os" "os"
"testing" "testing"
"github.com/mitchellh/multistep"
) )
func testStepOutputDir(t *testing.T) *StepOutputDir { func testStepOutputDir(t *testing.T) *StepOutputDir {

View File

@ -2,8 +2,9 @@ package common
import ( import (
"fmt" "fmt"
"github.com/mitchellh/multistep"
"os" "os"
"github.com/mitchellh/multistep"
) )
// This step prepares parameters related to Parallels Tools. // This step prepares parameters related to Parallels Tools.

View File

@ -2,9 +2,10 @@ package common
import ( import (
"fmt" "fmt"
"time"
"github.com/mitchellh/multistep" "github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"
"time"
) )
// This step starts the virtual machine. // This step starts the virtual machine.

View File

@ -3,10 +3,11 @@ package common
import ( import (
"errors" "errors"
"fmt" "fmt"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"log" "log"
"time" "time"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
) )
// This step shuts down the machine. It first attempts to do so gracefully, // This step shuts down the machine. It first attempts to do so gracefully,

View File

@ -1,10 +1,11 @@
package common package common
import ( import (
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"testing" "testing"
"time" "time"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
) )
func TestStepShutdown_impl(t *testing.T) { func TestStepShutdown_impl(t *testing.T) {

View File

@ -2,9 +2,10 @@ package common
import ( import (
"bytes" "bytes"
"testing"
"github.com/mitchellh/multistep" "github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"
"testing"
) )
func testState(t *testing.T) multistep.StateBag { func testState(t *testing.T) multistep.StateBag {

View File

@ -1,10 +1,11 @@
package common package common
import ( import (
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"strings" "strings"
"testing" "testing"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
) )
func TestStepTypeBootCommand(t *testing.T) { func TestStepTypeBootCommand(t *testing.T) {

View File

@ -1,9 +1,10 @@
package common package common
import ( import (
"testing"
"github.com/mitchellh/multistep" "github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"
"testing"
) )
func TestStepUploadParallelsTools_impl(t *testing.T) { func TestStepUploadParallelsTools_impl(t *testing.T) {

View File

@ -3,9 +3,10 @@ package common
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"log"
"github.com/mitchellh/multistep" "github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"
"log"
) )
// This step uploads a file containing the Parallels version, which // This step uploads a file containing the Parallels version, which

View File

@ -1,9 +1,10 @@
package common package common
import ( import (
"testing"
"github.com/mitchellh/multistep" "github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"
"testing"
) )
func TestStepUploadVersion_impl(t *testing.T) { func TestStepUploadVersion_impl(t *testing.T) {

View File

@ -2,10 +2,11 @@ package iso
import ( import (
"fmt" "fmt"
"log"
"github.com/mitchellh/multistep" "github.com/mitchellh/multistep"
parallelscommon "github.com/mitchellh/packer/builder/parallels/common" parallelscommon "github.com/mitchellh/packer/builder/parallels/common"
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"
"log"
) )
// This step attaches the ISO to the virtual machine. // This step attaches the ISO to the virtual machine.

View File

@ -2,10 +2,11 @@ package iso
import ( import (
"fmt" "fmt"
"strconv"
"github.com/mitchellh/multistep" "github.com/mitchellh/multistep"
parallelscommon "github.com/mitchellh/packer/builder/parallels/common" parallelscommon "github.com/mitchellh/packer/builder/parallels/common"
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"
"strconv"
) )
// This step creates the virtual disk that will be used as the // This step creates the virtual disk that will be used as the

View File

@ -2,6 +2,7 @@ package iso
import ( import (
"fmt" "fmt"
"github.com/mitchellh/multistep" "github.com/mitchellh/multistep"
parallelscommon "github.com/mitchellh/packer/builder/parallels/common" parallelscommon "github.com/mitchellh/packer/builder/parallels/common"
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"

View File

@ -2,6 +2,7 @@ package pvm
import ( import (
"fmt" "fmt"
"github.com/mitchellh/multistep" "github.com/mitchellh/multistep"
parallelscommon "github.com/mitchellh/packer/builder/parallels/common" parallelscommon "github.com/mitchellh/packer/builder/parallels/common"
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"

View File

@ -2,10 +2,11 @@ package pvm
import ( import (
"bytes" "bytes"
"testing"
"github.com/mitchellh/multistep" "github.com/mitchellh/multistep"
parallelscommon "github.com/mitchellh/packer/builder/parallels/common" parallelscommon "github.com/mitchellh/packer/builder/parallels/common"
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"
"testing"
) )
func testState(t *testing.T) multistep.StateBag { func testState(t *testing.T) multistep.StateBag {