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 (
"fmt"
"github.com/mitchellh/packer/packer"
"os"
"path/filepath"
"regexp"
"github.com/mitchellh/packer/packer"
)
// This is the common builder ID to all of these artifacts.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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