Skip to content

Commit

Permalink
Merge pull request #29 from gohiei/fix-goimport
Browse files Browse the repository at this point in the history
style: Fix `goimport`-ed problem
  • Loading branch information
gohiei authored Jul 7, 2023
2 parents 0a607a7 + 1e9a6b3 commit 3e49a3b
Show file tree
Hide file tree
Showing 22 changed files with 17 additions and 5 deletions.
1 change: 1 addition & 0 deletions cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"time"

app "cypt/internal"

"github.com/gin-gonic/gin"
"github.com/spf13/cobra"
"github.com/spf13/viper"
Expand Down
1 change: 1 addition & 0 deletions internal/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
adapter "cypt/internal/dddcore/adapter"
logger "cypt/internal/logger/adapter/restful"
user "cypt/internal/user/adapter/restful"

"github.com/gin-gonic/gin"
"github.com/spf13/viper"
)
Expand Down
1 change: 1 addition & 0 deletions internal/auth/adapter/restful/check_authorized_restful.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package auth
import (
usecase "cypt/internal/auth/usecase"
adapter "cypt/internal/dddcore/adapter"

"github.com/gin-gonic/gin"
)

Expand Down
1 change: 1 addition & 0 deletions internal/auth/adapter/restful/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package auth
import (
usecase "cypt/internal/auth/usecase"
"cypt/internal/dddcore"

"github.com/gin-gonic/gin"
)

Expand Down
1 change: 1 addition & 0 deletions internal/auth/entity/jwt_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

event "cypt/internal/auth/entity/events"
"cypt/internal/dddcore"

jwt "github.com/golang-jwt/jwt/v5"
)

Expand Down
1 change: 1 addition & 0 deletions internal/dddcore/adapter/restful.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package dddcore

import (
"cypt/internal/dddcore"

"github.com/gin-gonic/gin"
)

Expand Down
1 change: 1 addition & 0 deletions internal/dddcore/adapter/watermill_event_bus.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"time"

"cypt/internal/dddcore"

"github.com/ThreeDotsLabs/watermill"
"github.com/ThreeDotsLabs/watermill/message"
"github.com/ThreeDotsLabs/watermill/message/router/middleware"
Expand Down
1 change: 0 additions & 1 deletion internal/logger/adapter/restful/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"cypt/internal/dddcore"
adapter "cypt/internal/logger/adapter"
usecase "cypt/internal/logger/usecase"

"github.com/gin-gonic/gin"
)

Expand Down
1 change: 0 additions & 1 deletion internal/logger/adapter/restful/logger_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (

"cypt/internal/dddcore"
events "cypt/internal/logger/entity/events"

"github.com/gin-gonic/gin"
)

Expand Down
1 change: 1 addition & 0 deletions internal/logger/adapter/restful/logger_middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"cypt/internal/dddcore"
restful "cypt/internal/logger/adapter/restful"
dddcoreMock "cypt/test/mocks/dddcore"

"github.com/gin-gonic/gin"
"github.com/stretchr/testify/mock"
)
Expand Down
1 change: 0 additions & 1 deletion internal/logger/adapter/zerolog_log_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (

entity "cypt/internal/logger/entity"
repo "cypt/internal/logger/repository"

"github.com/natefinch/lumberjack"
"github.com/rs/zerolog"
)
Expand Down
1 change: 1 addition & 0 deletions internal/user/adapter/mysql_user_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"cypt/internal/dddcore"
model "cypt/internal/user/adapter/model"
entity "cypt/internal/user/entity"

"gorm.io/gorm"
)

Expand Down
1 change: 1 addition & 0 deletions internal/user/adapter/mysql_user_repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"cypt/internal/dddcore"
adapter "cypt/internal/user/adapter"
entity "cypt/internal/user/entity"

"github.com/DATA-DOG/go-sqlmock"
"github.com/stretchr/testify/assert"
"gorm.io/driver/mysql"
Expand Down
1 change: 1 addition & 0 deletions internal/user/adapter/redis_id_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"

repo "cypt/internal/user/repository"

"github.com/redis/go-redis/v9"
)

Expand Down
1 change: 1 addition & 0 deletions internal/user/adapter/redis_id_repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"testing"

repo "cypt/internal/user/adapter"

"github.com/go-redis/redismock/v9"
"github.com/stretchr/testify/assert"
)
Expand Down
1 change: 0 additions & 1 deletion internal/user/adapter/restful/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"cypt/internal/infra"
adapter "cypt/internal/user/adapter"
usecase "cypt/internal/user/usecase"

"github.com/gin-gonic/gin"
)

Expand Down
1 change: 1 addition & 0 deletions internal/user/adapter/restful/register.user.restful.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"cypt/internal/dddcore"
adapter "cypt/internal/dddcore/adapter"
usecase "cypt/internal/user/usecase"

"github.com/gin-gonic/gin"
)

Expand Down
1 change: 1 addition & 0 deletions internal/user/adapter/restful/rename_restful.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"cypt/internal/dddcore"
adapter "cypt/internal/dddcore/adapter"
usecase "cypt/internal/user/usecase"

"github.com/gin-gonic/gin"
)

Expand Down
1 change: 0 additions & 1 deletion internal/user/adapter/restful/rename_restful_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
restful "cypt/internal/user/adapter/restful"
usecase "cypt/internal/user/usecase"
dddcoreMock "cypt/test/mocks/dddcore"

"github.com/gin-gonic/gin"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
Expand Down
1 change: 1 addition & 0 deletions internal/user/entity/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"cypt/internal/dddcore"
user "cypt/internal/user/entity"

"github.com/stretchr/testify/assert"
)

Expand Down
1 change: 1 addition & 0 deletions internal/user/usecase/registry_user_usecase_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
usecase "cypt/internal/user/usecase"
dddcoreMock "cypt/test/mocks/dddcore"
userMock "cypt/test/mocks/user"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
)
Expand Down
1 change: 1 addition & 0 deletions internal/user/usecase/rename_usecase_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
usecase "cypt/internal/user/usecase"
dddcoreMock "cypt/test/mocks/dddcore"
userMock "cypt/test/mocks/user"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
)
Expand Down

0 comments on commit 3e49a3b

Please sign in to comment.