From f7f98c437387f4e5691f981ff81002285581502e Mon Sep 17 00:00:00 2001 From: Goutte Date: Wed, 10 Jan 2024 16:37:15 +0100 Subject: [PATCH] chore(i18n): lint --- args.go | 3 ++- cobra.go | 3 ++- command.go | 3 ++- completions.go | 3 ++- flag_groups.go | 3 ++- localizer.go | 3 ++- localizer_test.go | 3 ++- 7 files changed, 14 insertions(+), 7 deletions(-) diff --git a/args.go b/args.go index 6170a58e..ae378b5a 100644 --- a/args.go +++ b/args.go @@ -16,8 +16,9 @@ package cobra import ( "fmt" - "github.com/leonelquinteros/gotext" "strings" + + "github.com/leonelquinteros/gotext" ) type PositionalArgs func(cmd *Command, args []string) error diff --git a/cobra.go b/cobra.go index b79aa994..1e3193a8 100644 --- a/cobra.go +++ b/cobra.go @@ -19,7 +19,6 @@ package cobra import ( "fmt" - "github.com/leonelquinteros/gotext" "io" "os" "reflect" @@ -28,6 +27,8 @@ import ( "text/template" "time" "unicode" + + "github.com/leonelquinteros/gotext" ) var templateFuncs = template.FuncMap{ diff --git a/command.go b/command.go index 3e166264..b3ca4248 100644 --- a/command.go +++ b/command.go @@ -21,13 +21,14 @@ import ( "context" "errors" "fmt" - "github.com/leonelquinteros/gotext" "io" "os" "path/filepath" "sort" "strings" + "github.com/leonelquinteros/gotext" + flag "github.com/spf13/pflag" ) diff --git a/completions.go b/completions.go index 4bcd48a8..d2aabedc 100644 --- a/completions.go +++ b/completions.go @@ -16,11 +16,12 @@ package cobra import ( "fmt" - "github.com/leonelquinteros/gotext" "os" "strings" "sync" + "github.com/leonelquinteros/gotext" + "github.com/spf13/pflag" ) diff --git a/flag_groups.go b/flag_groups.go index fffbdfe1..ae2fa5bb 100644 --- a/flag_groups.go +++ b/flag_groups.go @@ -16,10 +16,11 @@ package cobra import ( "fmt" - "github.com/leonelquinteros/gotext" "sort" "strings" + "github.com/leonelquinteros/gotext" + flag "github.com/spf13/pflag" ) diff --git a/localizer.go b/localizer.go index 9cc54d4c..21dea7d4 100644 --- a/localizer.go +++ b/localizer.go @@ -18,8 +18,9 @@ import ( "fmt" "os" - "github.com/leonelquinteros/gotext" "golang.org/x/text/language" + + "github.com/leonelquinteros/gotext" ) var defaultLanguage = language.English diff --git a/localizer_test.go b/localizer_test.go index 94dfa434..44ef594c 100644 --- a/localizer_test.go +++ b/localizer_test.go @@ -15,9 +15,10 @@ package cobra import ( - "github.com/leonelquinteros/gotext" "os" "testing" + + "github.com/leonelquinteros/gotext" ) // resetLocalization resets to the vendor defaults