Skip to content

Commit

Permalink
small update, rename files
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Polyakov committed Jun 8, 2024
1 parent 2be1830 commit c47ca38
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ attach-db:

# Generate Go server boilerplate from OpenAPI 3
codegen:
oapi-codegen -generate models -o internal/app/apimodels/models.go --package models api/swagger.yaml
oapi-codegen -generate models -o internal/app/apimodels/models.gen.go --package models api/swagger.yaml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Roadmap [here](TODO.md)
├── cmd # main app
│   └── ctf01d
│   └── main.go
├── configs # config
├── config
│   ├── config.go
│   └── config.yml
├── internal
Expand Down
2 changes: 1 addition & 1 deletion cmd/ctf01d/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
config "ctf01d/configs"
"ctf01d/config"
"ctf01d/internal/app/routers"
"database/sql"
"log/slog"
Expand Down
2 changes: 1 addition & 1 deletion configs/config.go → config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type (
func NewConfig() (*Config, error) {
cfg := &Config{}

err := cleanenv.ReadConfig("./configs/config.yml", cfg)
err := cleanenv.ReadConfig("./config/config.yml", cfg)
if err != nil {
return nil, fmt.Errorf("%w", err)
}
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit c47ca38

Please sign in to comment.