From 73d6ee25319932e2265f2092de3e156789a49ec4 Mon Sep 17 00:00:00 2001 From: Ravi Suhag Date: Tue, 10 Dec 2024 20:21:24 -0600 Subject: [PATCH] cohre: fix gi imports --- cli/cmdx/cmdx.go | 3 ++- config/config.go | 7 ++++--- config/config_test.go | 7 ++++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/cli/cmdx/cmdx.go b/cli/cmdx/cmdx.go index 3da7969..5a2a0e0 100644 --- a/cli/cmdx/cmdx.go +++ b/cli/cmdx/cmdx.go @@ -1,8 +1,9 @@ package cmdx import ( - "github.com/spf13/cobra" "strings" + + "github.com/spf13/cobra" ) // Commander manages and configures features for a CLI tool. diff --git a/config/config.go b/config/config.go index 1dc9751..51b1588 100644 --- a/config/config.go +++ b/config/config.go @@ -4,6 +4,10 @@ import ( "encoding/json" "errors" "fmt" + "os" + "reflect" + "strings" + "github.com/go-playground/validator" "github.com/jeremywohl/flatten" "github.com/mcuadros/go-defaults" @@ -11,9 +15,6 @@ import ( "github.com/spf13/pflag" "github.com/spf13/viper" "gopkg.in/yaml.v3" - "os" - "reflect" - "strings" ) // Loader is responsible for managing configuration diff --git a/config/config_test.go b/config/config_test.go index 84334a5..2fa0bc5 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -1,12 +1,13 @@ package config_test import ( - "github.com/mcuadros/go-defaults" - "github.com/raystack/salt/config" - "github.com/spf13/pflag" "os" "strings" "testing" + + "github.com/mcuadros/go-defaults" + "github.com/raystack/salt/config" + "github.com/spf13/pflag" ) type Config struct {