From 8ab9672370f202f07c2ec98dfc5ad2bc449313f9 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Mon, 1 May 2017 12:04:31 -0300 Subject: [PATCH] gofmt --- config/config.go | 18 +++++++++--------- pipeline/build/target_test.go | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/config/config.go b/config/config.go index 4b738d159..75534dcd0 100644 --- a/config/config.go +++ b/config/config.go @@ -45,15 +45,15 @@ type IgnoredBuild struct { // Build contains the build configuration section type Build struct { - Goos []string `yaml:",omitempty"` - Goarch []string `yaml:",omitempty"` - Goarm []string `yaml:",omitempty"` - Ignore []IgnoredBuild `yaml:",omitempty"` - Main string `yaml:",omitempty"` - Ldflags string `yaml:",omitempty"` - Flags string `yaml:",omitempty"` - Binary string `yaml:",omitempty"` - Hooks Hooks `yaml:",omitempty"` + Goos []string `yaml:",omitempty"` + Goarch []string `yaml:",omitempty"` + Goarm []string `yaml:",omitempty"` + Ignore []IgnoredBuild `yaml:",omitempty"` + Main string `yaml:",omitempty"` + Ldflags string `yaml:",omitempty"` + Flags string `yaml:",omitempty"` + Binary string `yaml:",omitempty"` + Hooks Hooks `yaml:",omitempty"` } // FormatOverride is used to specify a custom format for a specific GOOS. diff --git a/pipeline/build/target_test.go b/pipeline/build/target_test.go index 034cc4089..6f9a3a485 100644 --- a/pipeline/build/target_test.go +++ b/pipeline/build/target_test.go @@ -43,15 +43,15 @@ func TestAllBuildTargets(t *testing.T) { }, } assert.Equal([]buildTarget{ - buildTarget{"linux", "386", ""}, - buildTarget{"linux", "amd64", ""}, - buildTarget{"linux", "arm", "6"}, - buildTarget{"linux", "arm64", ""}, - buildTarget{"darwin", "amd64", ""}, - buildTarget{"freebsd", "386", ""}, - buildTarget{"freebsd", "amd64", ""}, - buildTarget{"freebsd", "arm", "6"}, - buildTarget{"freebsd", "arm", "7"}, + {"linux", "386", ""}, + {"linux", "amd64", ""}, + {"linux", "arm", "6"}, + {"linux", "arm64", ""}, + {"darwin", "amd64", ""}, + {"freebsd", "386", ""}, + {"freebsd", "amd64", ""}, + {"freebsd", "arm", "6"}, + {"freebsd", "arm", "7"}, }, buildTargets(ctx)) }