From 45bfd072b41823affac8a6fd8b8fa24161873e8a Mon Sep 17 00:00:00 2001 From: Valentin Tjoncke Date: Thu, 8 Dec 2016 13:15:51 +0100 Subject: [PATCH] gofmt --- cobra/cmd/helpers.go | 4 ++-- command_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cobra/cmd/helpers.go b/cobra/cmd/helpers.go index 45d9c6ee..6c872ff1 100644 --- a/cobra/cmd/helpers.go +++ b/cobra/cmd/helpers.go @@ -19,10 +19,10 @@ import ( "io" "os" "path/filepath" + "regexp" "strings" "text/template" "time" - "regexp" "github.com/spf13/viper" ) @@ -43,7 +43,7 @@ var cmdDirs = []string{"cmd", "cmds", "command", "commands"} func init() { funcMap = template.FuncMap{ - "comment": commentifyString, + "comment": commentifyString, "camelcase": camelCaseString, } } diff --git a/command_test.go b/command_test.go index 050e6083..be9311db 100644 --- a/command_test.go +++ b/command_test.go @@ -146,8 +146,8 @@ func TestInitHelpFlagMergesFlags(t *testing.T) { cmd.initHelpFlag() actual := cmd.Flags().Lookup("help").Usage if actual != usage { - t.Fatalf("Expected the help flag from the base command with usage '%s', " + - "but got the default with usage '%s'", usage, actual) + t.Fatalf("Expected the help flag from the base command with usage '%s', "+ + "but got the default with usage '%s'", usage, actual) } }