Skip to content

Commit e04f480

Browse files
committed
gci pkg deps
1 parent b61e860 commit e04f480

File tree

23 files changed

+27
-50
lines changed

23 files changed

+27
-50
lines changed

cmd/main.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ import (
55
"net/http"
66
"os"
77

8-
"github.com/go-chi/chi/v5"
9-
"github.com/go-chi/cors"
10-
_ "github.com/lib/pq"
11-
_ "go.uber.org/automaxprocs"
12-
138
"ctf01d/internal/config"
149
"ctf01d/internal/handler"
1510
migration "ctf01d/internal/migrations/psql"
1611
"ctf01d/internal/server"
12+
"github.com/go-chi/chi/v5"
13+
"github.com/go-chi/cors"
14+
_ "github.com/lib/pq"
15+
_ "go.uber.org/automaxprocs"
1716
)
1817

1918
func main() {

internal/handler/games.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ import (
55
"log/slog"
66
"net/http"
77

8-
openapi_types "github.com/oapi-codegen/runtime/types"
9-
108
"ctf01d/internal/helper"
119
"ctf01d/internal/model"
1210
"ctf01d/internal/repository"
1311
"ctf01d/internal/server"
12+
openapi_types "github.com/oapi-codegen/runtime/types"
1413
)
1514

1615
func (h *Handler) CreateGame(w http.ResponseWriter, r *http.Request) {

internal/handler/interface.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ package handler
33
import (
44
"net/http"
55

6-
openapi_types "github.com/oapi-codegen/runtime/types"
7-
86
"ctf01d/internal/server"
7+
openapi_types "github.com/oapi-codegen/runtime/types"
98
)
109

1110
// ServerInterfaceWrapper wraps Handler to conform to the generated interface

internal/handler/results.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ import (
55
"log/slog"
66
"net/http"
77

8-
openapi_types "github.com/oapi-codegen/runtime/types"
9-
108
"ctf01d/internal/helper"
119
"ctf01d/internal/model"
1210
"ctf01d/internal/repository"
1311
"ctf01d/internal/server"
12+
openapi_types "github.com/oapi-codegen/runtime/types"
1413
)
1514

1615
func (h *Handler) CreateResult(w http.ResponseWriter, r *http.Request, gameId openapi_types.UUID) {

internal/handler/services.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ import (
55
"log/slog"
66
"net/http"
77

8-
openapi_types "github.com/oapi-codegen/runtime/types"
9-
108
"ctf01d/internal/helper"
119
"ctf01d/internal/model"
1210
"ctf01d/internal/repository"
1311
"ctf01d/internal/server"
12+
openapi_types "github.com/oapi-codegen/runtime/types"
1413
)
1514

1615
func (h *Handler) CreateService(w http.ResponseWriter, r *http.Request) {

internal/handler/sessions.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ import (
55
"log/slog"
66
"net/http"
77

8-
openapi_types "github.com/oapi-codegen/runtime/types"
9-
108
"ctf01d/internal/helper"
119
"ctf01d/internal/repository"
1210
"ctf01d/internal/server"
1311
"ctf01d/internal/view"
12+
openapi_types "github.com/oapi-codegen/runtime/types"
1413
)
1514

1615
func (h *Handler) SignInUser(w http.ResponseWriter, r *http.Request) {

internal/handler/teams.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ import (
55
"log/slog"
66
"net/http"
77

8-
openapi_types "github.com/oapi-codegen/runtime/types"
9-
108
"ctf01d/internal/helper"
119
"ctf01d/internal/model"
1210
"ctf01d/internal/repository"
1311
"ctf01d/internal/server"
12+
openapi_types "github.com/oapi-codegen/runtime/types"
1413
)
1514

1615
func (h *Handler) CreateTeam(w http.ResponseWriter, r *http.Request) {

internal/handler/users.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ import (
55
"log/slog"
66
"net/http"
77

8-
openapi_types "github.com/oapi-codegen/runtime/types"
9-
108
"ctf01d/internal/helper"
119
"ctf01d/internal/model"
1210
"ctf01d/internal/repository"
1311
"ctf01d/internal/server"
12+
openapi_types "github.com/oapi-codegen/runtime/types"
1413
)
1514

1615
func (h *Handler) CreateUser(w http.ResponseWriter, r *http.Request) {

internal/helper/helper.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"net/url"
99

1010
"ctf01d/internal/server"
11-
1211
"golang.org/x/crypto/bcrypt"
1312
)
1413

internal/model/game.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ package model
33
import (
44
"time"
55

6-
openapi_types "github.com/oapi-codegen/runtime/types"
7-
86
"ctf01d/internal/server"
7+
openapi_types "github.com/oapi-codegen/runtime/types"
98
)
109

1110
type Game struct {

0 commit comments

Comments
 (0)