cleanup goimports for linter

This commit is contained in:
Jeff Wong 2020-09-14 12:49:38 -07:00
parent f0c76bad52
commit 3c9969d841
4 changed files with 8 additions and 12 deletions

View File

@ -1,16 +1,16 @@
package proxmoxclone
import (
"context"
"fmt"
"time"
proxmoxapi "github.com/Telmate/proxmox-api-go/proxmox"
"github.com/hashicorp/hcl/v2/hcldec"
"github.com/hashicorp/packer/builder/proxmox/common"
proxmox "github.com/hashicorp/packer/builder/proxmox/common"
"github.com/hashicorp/packer/helper/communicator"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"context"
"fmt"
"time"
)
// The unique id for the builder
@ -23,8 +23,6 @@ type Builder struct {
// Builder implements packer.Builder
var _ packer.Builder = &Builder{}
var pluginVersion = "1.0.0"
func (b *Builder) ConfigSpec() hcldec.ObjectSpec { return b.config.FlatMapstructure().HCL2Spec() }
func (b *Builder) Prepare(raws ...interface{}) ([]string, []string, error) {

View File

@ -3,7 +3,7 @@
package proxmoxclone
import (
"github.com/hashicorp/packer/builder/proxmox/common"
proxmox "github.com/hashicorp/packer/builder/proxmox/common"
"github.com/hashicorp/packer/packer"
)

View File

@ -5,7 +5,7 @@ import (
proxmoxapi "github.com/Telmate/proxmox-api-go/proxmox"
"github.com/hashicorp/hcl/v2/hcldec"
"github.com/hashicorp/packer/builder/proxmox/common"
proxmox "github.com/hashicorp/packer/builder/proxmox/common"
"github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
@ -21,8 +21,6 @@ type Builder struct {
// Builder implements packer.Builder
var _ packer.Builder = &Builder{}
var pluginVersion = "1.0.0"
func (b *Builder) ConfigSpec() hcldec.ObjectSpec { return b.config.FlatMapstructure().HCL2Spec() }
func (b *Builder) Prepare(raws ...interface{}) ([]string, []string, error) {

View File

@ -9,7 +9,7 @@ import (
"strconv"
"strings"
"github.com/hashicorp/packer/builder/proxmox/common"
proxmox "github.com/hashicorp/packer/builder/proxmox/common"
"github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/packer"
)