🎨 Optimize imports

This commit is contained in:
OpenWaygate committed 2025-08-18 00:47:26 +08:00
1 parent df7d5f4135
commit 8b008eef9f
33 files changed
+78 -45

No files matched your search

+2 -1
View File
@@ -2,11 +2,12 @@ package activity
import (
"errors"
"io"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"github.com/jedib0t/go-pretty/v6/table"
"google.golang.org/api/youtube/v3"
"io"
)
var (
+2 -1
View File
@@ -1,9 +1,10 @@
package activity
import (
"github.com/eat-pray-ai/yutu/pkg/utils"
"reflect"
"testing"
"github.com/eat-pray-ai/yutu/pkg/utils"
)
func TestNewActivity(t *testing.T) {
+5 -4
View File
@@ -5,16 +5,17 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/eat-pray-ai/yutu/pkg/utils"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
"google.golang.org/api/youtube/v3"
"log"
"net"
"net/http"
"net/url"
"os"
"strings"
"github.com/eat-pray-ai/yutu/pkg/utils"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
"google.golang.org/api/youtube/v3"
)
const (
+4 -3
View File
@@ -5,12 +5,13 @@ import (
"encoding/base64"
"errors"
"fmt"
"github.com/eat-pray-ai/yutu/pkg/utils"
"google.golang.org/api/option"
"google.golang.org/api/youtube/v3"
"log"
"os"
"strings"
"github.com/eat-pray-ai/yutu/pkg/utils"
"google.golang.org/api/option"
"google.golang.org/api/youtube/v3"
)
var (
+3 -2
View File
@@ -3,12 +3,13 @@ package caption
import (
"errors"
"fmt"
"io"
"os"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"github.com/jedib0t/go-pretty/v6/table"
"google.golang.org/api/youtube/v3"
"io"
"os"
)
var (
+2 -1
View File
@@ -1,9 +1,10 @@
package caption
import (
"github.com/eat-pray-ai/yutu/pkg/utils"
"reflect"
"testing"
"github.com/eat-pray-ai/yutu/pkg/utils"
)
func TestNewCation(t *testing.T) {
+2 -1
View File
@@ -3,10 +3,11 @@ package channel
import (
"errors"
"fmt"
"io"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"github.com/jedib0t/go-pretty/v6/table"
"io"
"google.golang.org/api/youtube/v3"
)
+2 -1
View File
@@ -1,9 +1,10 @@
package channel
import (
"github.com/eat-pray-ai/yutu/pkg/utils"
"reflect"
"testing"
"github.com/eat-pray-ai/yutu/pkg/utils"
)
func TestNewChannel(t *testing.T) {
+3 -2
View File
@@ -3,11 +3,12 @@ package channelBanner
import (
"errors"
"fmt"
"io"
"os"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"google.golang.org/api/youtube/v3"
"io"
"os"
)
var (
+2 -1
View File
@@ -3,11 +3,12 @@ package channelSection
import (
"errors"
"fmt"
"io"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"github.com/jedib0t/go-pretty/v6/table"
"google.golang.org/api/youtube/v3"
"io"
)
var (
+2 -1
View File
@@ -1,9 +1,10 @@
package channelSection
import (
"github.com/eat-pray-ai/yutu/pkg/utils"
"reflect"
"testing"
"github.com/eat-pray-ai/yutu/pkg/utils"
)
func TestNewChannelSection(t *testing.T) {
+2 -1
View File
@@ -3,11 +3,12 @@ package comment
import (
"errors"
"fmt"
"io"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"github.com/jedib0t/go-pretty/v6/table"
"google.golang.org/api/youtube/v3"
"io"
)
var (
+2 -1
View File
@@ -1,9 +1,10 @@
package comment
import (
"github.com/eat-pray-ai/yutu/pkg/utils"
"reflect"
"testing"
"github.com/eat-pray-ai/yutu/pkg/utils"
)
func TestNewComment(t *testing.T) {
+2 -1
View File
@@ -3,11 +3,12 @@ package commentThread
import (
"errors"
"fmt"
"io"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"github.com/jedib0t/go-pretty/v6/table"
"google.golang.org/api/youtube/v3"
"io"
)
var (
+2 -1
View File
@@ -2,11 +2,12 @@ package i18nLanguage
import (
"errors"
"io"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"github.com/jedib0t/go-pretty/v6/table"
"google.golang.org/api/youtube/v3"
"io"
)
var (
+2 -1
View File
@@ -2,11 +2,12 @@ package i18nRegion
import (
"errors"
"io"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"github.com/jedib0t/go-pretty/v6/table"
"google.golang.org/api/youtube/v3"
"io"
)
var (
+2 -1
View File
@@ -2,11 +2,12 @@ package member
import (
"errors"
"io"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"github.com/jedib0t/go-pretty/v6/table"
"google.golang.org/api/youtube/v3"
"io"
)
var (
+2 -1
View File
@@ -2,11 +2,12 @@ package membershipsLevel
import (
"errors"
"io"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"github.com/jedib0t/go-pretty/v6/table"
"google.golang.org/api/youtube/v3"
"io"
)
var (
+2 -1
View File
@@ -3,11 +3,12 @@ package playlist
import (
"errors"
"fmt"
"io"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"github.com/jedib0t/go-pretty/v6/table"
"google.golang.org/api/youtube/v3"
"io"
)
var (
+2 -1
View File
@@ -1,9 +1,10 @@
package playlist
import (
"github.com/eat-pray-ai/yutu/pkg/utils"
"reflect"
"testing"
"github.com/eat-pray-ai/yutu/pkg/utils"
)
func TestNewPlaylist(t *testing.T) {
+3 -2
View File
@@ -3,12 +3,13 @@ package playlistImage
import (
"errors"
"fmt"
"io"
"os"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"github.com/jedib0t/go-pretty/v6/table"
"google.golang.org/api/youtube/v3"
"io"
"os"
)
var (
+2 -1
View File
@@ -3,11 +3,12 @@ package playlistItem
import (
"errors"
"fmt"
"io"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"github.com/jedib0t/go-pretty/v6/table"
"google.golang.org/api/youtube/v3"
"io"
)
var (
+2 -1
View File
@@ -2,11 +2,12 @@ package search
import (
"errors"
"io"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"github.com/jedib0t/go-pretty/v6/table"
"google.golang.org/api/youtube/v3"
"io"
)
var (
+2 -1
View File
@@ -1,9 +1,10 @@
package search
import (
"github.com/eat-pray-ai/yutu/pkg/utils"
"reflect"
"testing"
"github.com/eat-pray-ai/yutu/pkg/utils"
)
func TestNewSearch(t *testing.T) {
+2 -1
View File
@@ -3,11 +3,12 @@ package subscription
import (
"errors"
"fmt"
"io"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"github.com/jedib0t/go-pretty/v6/table"
"google.golang.org/api/youtube/v3"
"io"
)
var (
+2 -1
View File
@@ -1,9 +1,10 @@
package subscription
import (
"github.com/eat-pray-ai/yutu/pkg/utils"
"reflect"
"testing"
"github.com/eat-pray-ai/yutu/pkg/utils"
)
func TestNewSubscription(t *testing.T) {
+2 -1
View File
@@ -2,11 +2,12 @@ package superChatEvent
import (
"errors"
"io"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"github.com/jedib0t/go-pretty/v6/table"
"google.golang.org/api/youtube/v3"
"io"
)
var (
+3 -2
View File
@@ -3,11 +3,12 @@ package thumbnail
import (
"errors"
"fmt"
"io"
"os"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"google.golang.org/api/youtube/v3"
"io"
"os"
)
var (
+4 -3
View File
@@ -3,13 +3,14 @@ package video
import (
"errors"
"fmt"
"io"
"os"
"slices"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/playlistItem"
"github.com/eat-pray-ai/yutu/pkg/thumbnail"
"github.com/jedib0t/go-pretty/v6/table"
"io"
"os"
"slices"
"github.com/eat-pray-ai/yutu/pkg/utils"
"google.golang.org/api/youtube/v3"
+2 -1
View File
@@ -1,9 +1,10 @@
package video
import (
"github.com/eat-pray-ai/yutu/pkg/utils"
"reflect"
"testing"
"github.com/eat-pray-ai/yutu/pkg/utils"
)
func TestNewVideo(t *testing.T) {
@@ -2,11 +2,12 @@ package videoAbuseReportReason
import (
"errors"
"io"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"github.com/jedib0t/go-pretty/v6/table"
"google.golang.org/api/youtube/v3"
"io"
)
var (
+2 -1
View File
@@ -2,11 +2,12 @@ package videoCategory
import (
"errors"
"io"
"github.com/eat-pray-ai/yutu/pkg/auth"
"github.com/eat-pray-ai/yutu/pkg/utils"
"github.com/jedib0t/go-pretty/v6/table"
"google.golang.org/api/youtube/v3"
"io"
)
var (
+3 -2
View File
@@ -3,10 +3,11 @@ package watermark
import (
"errors"
"fmt"
"github.com/eat-pray-ai/yutu/pkg/auth"
"google.golang.org/api/youtube/v3"
"io"
"os"
"github.com/eat-pray-ai/yutu/pkg/auth"
"google.golang.org/api/youtube/v3"
)
var (