Commit 4453fda2 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

go fmt

parent 3a97bae0
package amazonebs package amazonebs
import ( import (
"fmt"
gossh "code.google.com/p/go.crypto/ssh" gossh "code.google.com/p/go.crypto/ssh"
"fmt"
"github.com/mitchellh/goamz/ec2" "github.com/mitchellh/goamz/ec2"
"github.com/mitchellh/packer/communicator/ssh" "github.com/mitchellh/packer/communicator/ssh"
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"
......
...@@ -5,7 +5,7 @@ import ( ...@@ -5,7 +5,7 @@ import (
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"
) )
type stepCreateAMI struct {} type stepCreateAMI struct{}
func (s *stepCreateAMI) Run(state map[string]interface{}) StepAction { func (s *stepCreateAMI) Run(state map[string]interface{}) StepAction {
config := state["config"].(config) config := state["config"].(config)
......
...@@ -5,7 +5,7 @@ import ( ...@@ -5,7 +5,7 @@ import (
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"
) )
type stepStopInstance struct {} type stepStopInstance struct{}
func (s *stepStopInstance) Run(state map[string]interface{}) StepAction { func (s *stepStopInstance) Run(state map[string]interface{}) StepAction {
ec2conn := state["ec2"].(*ec2.EC2) ec2conn := state["ec2"].(*ec2.EC2)
......
...@@ -21,14 +21,14 @@ type ReaderWriterUi struct { ...@@ -21,14 +21,14 @@ type ReaderWriterUi struct {
} }
func (rw *ReaderWriterUi) Say(format string, a ...interface{}) { 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 { if err != nil {
panic(err) panic(err)
} }
} }
func (rw *ReaderWriterUi) Error(format string, a ...interface{}) { 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 { if err != nil {
panic(err) panic(err)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment