From 94ec8498ac6e44c39f0fff6941f39b3fce18b09e Mon Sep 17 00:00:00 2001 From: eeeXun Date: Mon, 9 Jan 2023 19:17:01 +0000 Subject: [PATCH] style(format): run goimports --- internal/translate/translator.go | 5 +++-- main.go | 5 +++-- ui.go | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/internal/translate/translator.go b/internal/translate/translator.go index 50aef58..1d332f0 100644 --- a/internal/translate/translator.go +++ b/internal/translate/translator.go @@ -4,12 +4,13 @@ import ( "encoding/json" "errors" "fmt" - "github.com/hajimehoshi/go-mp3" - "github.com/hajimehoshi/oto/v2" "io/ioutil" "net/http" "net/url" "time" + + "github.com/hajimehoshi/go-mp3" + "github.com/hajimehoshi/oto/v2" ) const ( diff --git a/main.go b/main.go index 96ff902..536d8e5 100644 --- a/main.go +++ b/main.go @@ -1,11 +1,12 @@ package main import ( - "github.com/rivo/tview" - "github.com/spf13/viper" "gtt/internal/color" "gtt/internal/translate" "gtt/internal/ui" + + "github.com/rivo/tview" + "github.com/spf13/viper" ) var ( diff --git a/ui.go b/ui.go index ff57b55..6804cfe 100644 --- a/ui.go +++ b/ui.go @@ -2,11 +2,12 @@ package main import ( "fmt" - "github.com/gdamore/tcell/v2" - "github.com/rivo/tview" "gtt/internal/color" "gtt/internal/translate" "strconv" + + "github.com/gdamore/tcell/v2" + "github.com/rivo/tview" ) const (