From 4bd7db075903a7402ade74ab723e59c6ddf1437a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 22 May 2013 14:36:33 -0700 Subject: [PATCH] go fmt --- builder/amazonebs/artifact.go | 2 +- packer/template.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/builder/amazonebs/artifact.go b/builder/amazonebs/artifact.go index 9041f928f..cab22538d 100644 --- a/builder/amazonebs/artifact.go +++ b/builder/amazonebs/artifact.go @@ -5,7 +5,7 @@ import ( "strings" ) -type artifact struct{ +type artifact struct { // A map of regions to AMI IDs. amis map[string]string } diff --git a/packer/template.go b/packer/template.go index 6e5195628..467d3bf71 100644 --- a/packer/template.go +++ b/packer/template.go @@ -57,7 +57,7 @@ func ParseTemplate(data []byte) (t *Template, err error) { for i, v := range rawTpl.Builders { rawType, ok := v["type"] if !ok { - errors = append(errors, fmt.Errorf("builder %d: missing 'type'", i + 1)) + errors = append(errors, fmt.Errorf("builder %d: missing 'type'", i+1)) continue } @@ -72,13 +72,13 @@ func ParseTemplate(data []byte) (t *Template, err error) { // Attempt to convert the name/type to strings, but error if we can't name, ok := rawName.(string) if !ok { - errors = append(errors, fmt.Errorf("builder %d: name must be a string", i + 1)) + errors = append(errors, fmt.Errorf("builder %d: name must be a string", i+1)) continue } typeName, ok := rawType.(string) if !ok { - errors = append(errors, fmt.Errorf("builder %d: type must be a string", i + 1)) + errors = append(errors, fmt.Errorf("builder %d: type must be a string", i+1)) continue }