diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-08 19:59:40 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-08 19:59:40 +0900 |
| commit | 205cb5e21b960852a06fa28baaa03dbbd6aa835f (patch) | |
| tree | 24275a385bbd2f670a33ea234381146c7fc46130 /backend/main.go | |
| parent | 59d423234056dabd51ca02f663243fe6b2128837 (diff) | |
| download | phperkaigi-2025-albatross-205cb5e21b960852a06fa28baaa03dbbd6aa835f.tar.gz phperkaigi-2025-albatross-205cb5e21b960852a06fa28baaa03dbbd6aa835f.tar.zst phperkaigi-2025-albatross-205cb5e21b960852a06fa28baaa03dbbd6aa835f.zip | |
feat(backend/worker): enable `stylecheck` in `golangci-lint`
Diffstat (limited to 'backend/main.go')
| -rw-r--r-- | backend/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/main.go b/backend/main.go index 9f92415..c8a5832 100644 --- a/backend/main.go +++ b/backend/main.go @@ -38,7 +38,7 @@ func main() { log.Fatalf("Error loading env %v", err) } - openApiSpec, err := api.GetSwaggerWithPrefix("/api") + openAPISpec, err := api.GetSwaggerWithPrefix("/api") if err != nil { log.Fatalf("Error loading OpenAPI spec\n: %s", err) } @@ -79,7 +79,7 @@ func main() { }) apiGroup := e.Group("/api") - apiGroup.Use(oapimiddleware.OapiRequestValidator(openApiSpec)) + apiGroup.Use(oapimiddleware.OapiRequestValidator(openAPISpec)) apiHandler := api.NewHandler(queries, gameHubs) api.RegisterHandlers(apiGroup, api.NewStrictHandler(apiHandler, nil)) |
