Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goimports を使用して import 文を整理する #344

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions controllers/attendance_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package controllers

import (
"fmt"
"log"
"strconv"

"github.com/YJU-OKURA/project_minori-gin-deployment-repo/constants"
"github.com/YJU-OKURA/project_minori-gin-deployment-repo/models"
"github.com/YJU-OKURA/project_minori-gin-deployment-repo/services"
"github.com/gin-gonic/gin"
"log"
"strconv"
)

// AttendanceController インタフェースを実装
Expand Down
3 changes: 2 additions & 1 deletion controllers/chat_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package controllers

import (
"context"
"io"

"github.com/YJU-OKURA/project_minori-gin-deployment-repo/constants"
"github.com/YJU-OKURA/project_minori-gin-deployment-repo/services"
"github.com/gin-gonic/gin"
"github.com/go-redis/redis/v8"
"io"
)

// ChatController チャットコントローラ
Expand Down
7 changes: 4 additions & 3 deletions controllers/class_board_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ package controllers
import (
"errors"
"fmt"
"log"
"net/http"
"strconv"

"github.com/YJU-OKURA/project_minori-gin-deployment-repo/constants"
"github.com/YJU-OKURA/project_minori-gin-deployment-repo/dto"
"github.com/YJU-OKURA/project_minori-gin-deployment-repo/services"
"github.com/YJU-OKURA/project_minori-gin-deployment-repo/utils"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin/binding"
"log"
"net/http"
"strconv"
)

// ClassBoardController インタフェースを実装
Expand Down
5 changes: 3 additions & 2 deletions controllers/class_schedule_controller.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package controllers

import (
"net/http"
"strconv"

"github.com/YJU-OKURA/project_minori-gin-deployment-repo/constants"
"github.com/YJU-OKURA/project_minori-gin-deployment-repo/dto"
"github.com/YJU-OKURA/project_minori-gin-deployment-repo/models"
"github.com/YJU-OKURA/project_minori-gin-deployment-repo/services"
"github.com/gin-gonic/gin"
"net/http"
"strconv"
)

// ClassScheduleController インタフェースを実装
Expand Down
5 changes: 3 additions & 2 deletions controllers/live_class_controller.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package controllers

import (
"github.com/YJU-OKURA/project_minori-gin-deployment-repo/services"
"github.com/gin-gonic/gin"
"net/http"
"strconv"
"time"

"github.com/YJU-OKURA/project_minori-gin-deployment-repo/services"
"github.com/gin-gonic/gin"
)

type LiveClassController struct {
Expand Down
1 change: 1 addition & 0 deletions controllers/response_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package controllers

import (
"errors"

"github.com/YJU-OKURA/project_minori-gin-deployment-repo/constants"
"github.com/YJU-OKURA/project_minori-gin-deployment-repo/services"
"github.com/gin-gonic/gin"
Expand Down
1 change: 1 addition & 0 deletions repositories/class_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package repositories

import (
"errors"

"github.com/YJU-OKURA/project_minori-gin-deployment-repo/models"
"gorm.io/gorm"
)
Expand Down
1 change: 1 addition & 0 deletions services/attendance_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package services

import (
"errors"

"github.com/YJU-OKURA/project_minori-gin-deployment-repo/models"
"github.com/YJU-OKURA/project_minori-gin-deployment-repo/repositories"
"gorm.io/gorm"
Expand Down
5 changes: 3 additions & 2 deletions services/chat_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/dustin/go-broadcast"
"github.com/go-redis/redis/v8"
"log"
"time"

"github.com/dustin/go-broadcast"
"github.com/go-redis/redis/v8"
)

// Message ユーザーとルームの識別子を持つチャットメッセージを表す
Expand Down
5 changes: 3 additions & 2 deletions services/class_board_service.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package services

import (
"net/http"
"sync"

"github.com/YJU-OKURA/project_minori-gin-deployment-repo/dto"
"github.com/YJU-OKURA/project_minori-gin-deployment-repo/models"
"github.com/YJU-OKURA/project_minori-gin-deployment-repo/repositories"
"github.com/YJU-OKURA/project_minori-gin-deployment-repo/utils"
"net/http"
"sync"
)

// ClassBoardService インタフェース
Expand Down
5 changes: 3 additions & 2 deletions services/live_class_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/YJU-OKURA/project_minori-gin-deployment-repo/repositories"
"github.com/go-redis/redis/v8"
"io/ioutil"
"log"
"net/http"
"time"

"github.com/YJU-OKURA/project_minori-gin-deployment-repo/repositories"
"github.com/go-redis/redis/v8"
)

type LiveClassService interface {
Expand Down
13 changes: 7 additions & 6 deletions utils/uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@ import (
"bytes"
"context"
"fmt"
"github.com/YJU-OKURA/project_minori-gin-deployment-repo/constants"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/credentials"
"github.com/aws/aws-sdk-go-v2/feature/s3/manager"
"github.com/aws/aws-sdk-go-v2/service/s3"
"io"
"log"
"mime/multipart"
"os"
"path/filepath"
"strings"
"time"

"github.com/YJU-OKURA/project_minori-gin-deployment-repo/constants"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/credentials"
"github.com/aws/aws-sdk-go-v2/feature/s3/manager"
"github.com/aws/aws-sdk-go-v2/service/s3"
)

type Uploader interface {
Expand Down
Loading