chore(i18n): lint

This commit is contained in:
Goutte 2024-01-10 16:37:15 +01:00
parent 20e0d82e97
commit f7f98c4373
7 changed files with 14 additions and 7 deletions

View file

@ -16,8 +16,9 @@ package cobra
import ( import (
"fmt" "fmt"
"github.com/leonelquinteros/gotext"
"strings" "strings"
"github.com/leonelquinteros/gotext"
) )
type PositionalArgs func(cmd *Command, args []string) error type PositionalArgs func(cmd *Command, args []string) error

View file

@ -19,7 +19,6 @@ package cobra
import ( import (
"fmt" "fmt"
"github.com/leonelquinteros/gotext"
"io" "io"
"os" "os"
"reflect" "reflect"
@ -28,6 +27,8 @@ import (
"text/template" "text/template"
"time" "time"
"unicode" "unicode"
"github.com/leonelquinteros/gotext"
) )
var templateFuncs = template.FuncMap{ var templateFuncs = template.FuncMap{

View file

@ -21,13 +21,14 @@ import (
"context" "context"
"errors" "errors"
"fmt" "fmt"
"github.com/leonelquinteros/gotext"
"io" "io"
"os" "os"
"path/filepath" "path/filepath"
"sort" "sort"
"strings" "strings"
"github.com/leonelquinteros/gotext"
flag "github.com/spf13/pflag" flag "github.com/spf13/pflag"
) )

View file

@ -16,11 +16,12 @@ package cobra
import ( import (
"fmt" "fmt"
"github.com/leonelquinteros/gotext"
"os" "os"
"strings" "strings"
"sync" "sync"
"github.com/leonelquinteros/gotext"
"github.com/spf13/pflag" "github.com/spf13/pflag"
) )

View file

@ -16,10 +16,11 @@ package cobra
import ( import (
"fmt" "fmt"
"github.com/leonelquinteros/gotext"
"sort" "sort"
"strings" "strings"
"github.com/leonelquinteros/gotext"
flag "github.com/spf13/pflag" flag "github.com/spf13/pflag"
) )

View file

@ -18,8 +18,9 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/leonelquinteros/gotext"
"golang.org/x/text/language" "golang.org/x/text/language"
"github.com/leonelquinteros/gotext"
) )
var defaultLanguage = language.English var defaultLanguage = language.English

View file

@ -15,9 +15,10 @@
package cobra package cobra
import ( import (
"github.com/leonelquinteros/gotext"
"os" "os"
"testing" "testing"
"github.com/leonelquinteros/gotext"
) )
// resetLocalization resets to the vendor defaults // resetLocalization resets to the vendor defaults