Skip to content

Commit 8b008ee

Browse files
committed
🎨 Optimize imports
1 parent df7d5f4 commit 8b008ee

File tree

33 files changed

+78
-45
lines changed

33 files changed

+78
-45
lines changed

pkg/activity/activity.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ package activity
22

33
import (
44
"errors"
5+
"io"
6+
57
"github.com/eat-pray-ai/yutu/pkg/auth"
68
"github.com/eat-pray-ai/yutu/pkg/utils"
79
"github.com/jedib0t/go-pretty/v6/table"
810
"google.golang.org/api/youtube/v3"
9-
"io"
1011
)
1112

1213
var (

pkg/activity/activity_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package activity
22

33
import (
4-
"github.com/eat-pray-ai/yutu/pkg/utils"
54
"reflect"
65
"testing"
6+
7+
"github.com/eat-pray-ai/yutu/pkg/utils"
78
)
89

910
func TestNewActivity(t *testing.T) {

pkg/auth/auth.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@ import (
55
"encoding/json"
66
"errors"
77
"fmt"
8-
"github.com/eat-pray-ai/yutu/pkg/utils"
9-
"golang.org/x/oauth2"
10-
"golang.org/x/oauth2/google"
11-
"google.golang.org/api/youtube/v3"
128
"log"
139
"net"
1410
"net/http"
1511
"net/url"
1612
"os"
1713
"strings"
14+
15+
"github.com/eat-pray-ai/yutu/pkg/utils"
16+
"golang.org/x/oauth2"
17+
"golang.org/x/oauth2/google"
18+
"google.golang.org/api/youtube/v3"
1819
)
1920

2021
const (

pkg/auth/service.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ import (
55
"encoding/base64"
66
"errors"
77
"fmt"
8-
"github.com/eat-pray-ai/yutu/pkg/utils"
9-
"google.golang.org/api/option"
10-
"google.golang.org/api/youtube/v3"
118
"log"
129
"os"
1310
"strings"
11+
12+
"github.com/eat-pray-ai/yutu/pkg/utils"
13+
"google.golang.org/api/option"
14+
"google.golang.org/api/youtube/v3"
1415
)
1516

1617
var (

pkg/caption/caption.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ package caption
33
import (
44
"errors"
55
"fmt"
6+
"io"
7+
"os"
8+
69
"github.com/eat-pray-ai/yutu/pkg/auth"
710
"github.com/eat-pray-ai/yutu/pkg/utils"
811
"github.com/jedib0t/go-pretty/v6/table"
912
"google.golang.org/api/youtube/v3"
10-
"io"
11-
"os"
1213
)
1314

1415
var (

pkg/caption/caption_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package caption
22

33
import (
4-
"github.com/eat-pray-ai/yutu/pkg/utils"
54
"reflect"
65
"testing"
6+
7+
"github.com/eat-pray-ai/yutu/pkg/utils"
78
)
89

910
func TestNewCation(t *testing.T) {

pkg/channel/channel.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package channel
33
import (
44
"errors"
55
"fmt"
6+
"io"
7+
68
"github.com/eat-pray-ai/yutu/pkg/auth"
79
"github.com/eat-pray-ai/yutu/pkg/utils"
810
"github.com/jedib0t/go-pretty/v6/table"
9-
"io"
1011

1112
"google.golang.org/api/youtube/v3"
1213
)

pkg/channel/channel_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package channel
22

33
import (
4-
"github.com/eat-pray-ai/yutu/pkg/utils"
54
"reflect"
65
"testing"
6+
7+
"github.com/eat-pray-ai/yutu/pkg/utils"
78
)
89

910
func TestNewChannel(t *testing.T) {

pkg/channelBanner/channelBanner.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ package channelBanner
33
import (
44
"errors"
55
"fmt"
6+
"io"
7+
"os"
8+
69
"github.com/eat-pray-ai/yutu/pkg/auth"
710
"github.com/eat-pray-ai/yutu/pkg/utils"
811
"google.golang.org/api/youtube/v3"
9-
"io"
10-
"os"
1112
)
1213

1314
var (

pkg/channelSection/channelSection.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ package channelSection
33
import (
44
"errors"
55
"fmt"
6+
"io"
7+
68
"github.com/eat-pray-ai/yutu/pkg/auth"
79
"github.com/eat-pray-ai/yutu/pkg/utils"
810
"github.com/jedib0t/go-pretty/v6/table"
911
"google.golang.org/api/youtube/v3"
10-
"io"
1112
)
1213

1314
var (

0 commit comments

Comments
 (0)