From 4453fda2e80c92430a8bc7736c3f498f79d0ddd5 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 21 May 2013 00:56:27 -0700 Subject: [PATCH] go fmt --- builder/amazonebs/step_connect_ssh.go | 2 +- builder/amazonebs/step_create_ami.go | 2 +- builder/amazonebs/step_stop_instance.go | 2 +- packer/ui.go | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/builder/amazonebs/step_connect_ssh.go b/builder/amazonebs/step_connect_ssh.go index c9285c261..349d86987 100644 --- a/builder/amazonebs/step_connect_ssh.go +++ b/builder/amazonebs/step_connect_ssh.go @@ -1,8 +1,8 @@ package amazonebs import ( - "fmt" gossh "code.google.com/p/go.crypto/ssh" + "fmt" "github.com/mitchellh/goamz/ec2" "github.com/mitchellh/packer/communicator/ssh" "github.com/mitchellh/packer/packer" diff --git a/builder/amazonebs/step_create_ami.go b/builder/amazonebs/step_create_ami.go index aea0c05ef..7838335f0 100644 --- a/builder/amazonebs/step_create_ami.go +++ b/builder/amazonebs/step_create_ami.go @@ -5,7 +5,7 @@ import ( "github.com/mitchellh/packer/packer" ) -type stepCreateAMI struct {} +type stepCreateAMI struct{} func (s *stepCreateAMI) Run(state map[string]interface{}) StepAction { config := state["config"].(config) diff --git a/builder/amazonebs/step_stop_instance.go b/builder/amazonebs/step_stop_instance.go index 70e5a5c95..d9b876826 100644 --- a/builder/amazonebs/step_stop_instance.go +++ b/builder/amazonebs/step_stop_instance.go @@ -5,7 +5,7 @@ import ( "github.com/mitchellh/packer/packer" ) -type stepStopInstance struct {} +type stepStopInstance struct{} func (s *stepStopInstance) Run(state map[string]interface{}) StepAction { ec2conn := state["ec2"].(*ec2.EC2) diff --git a/packer/ui.go b/packer/ui.go index 0f6e173d2..00ee01f56 100644 --- a/packer/ui.go +++ b/packer/ui.go @@ -21,14 +21,14 @@ type ReaderWriterUi struct { } func (rw *ReaderWriterUi) Say(format string, a ...interface{}) { - _, err := fmt.Fprintf(rw.Writer, format + "\n", a...) + _, err := fmt.Fprintf(rw.Writer, format+"\n", a...) if err != nil { panic(err) } } func (rw *ReaderWriterUi) Error(format string, a ...interface{}) { - _, err := fmt.Fprintf(rw.Writer, format + "\n", a...) + _, err := fmt.Fprintf(rw.Writer, format+"\n", a...) if err != nil { panic(err) }