aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/main.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-11-28 21:46:04 +0900
committernsfisis <nsfisis@gmail.com>2025-11-28 21:46:04 +0900
commit7320d5326fca5faa76fc27500f918323ce2c32f5 (patch)
tree7e62e5f88da410d601fe33c776a1e900370cac22 /backend/main.go
parentfb003504b5c64271b37470b4c53f1c4451acec2a (diff)
downloadfeedaka-7320d5326fca5faa76fc27500f918323ce2c32f5.tar.gz
feedaka-7320d5326fca5faa76fc27500f918323ce2c32f5.tar.zst
feedaka-7320d5326fca5faa76fc27500f918323ce2c32f5.zip
refactor(backend): Move config.go to separate package
Diffstat (limited to 'backend/main.go')
-rw-r--r--backend/main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/backend/main.go b/backend/main.go
index 714d496..e392a33 100644
--- a/backend/main.go
+++ b/backend/main.go
@@ -6,13 +6,15 @@ import (
"log"
_ "github.com/mattn/go-sqlite3"
+
+ "undef.ninja/x/feedaka/config"
)
//go:generate go tool sqlc generate
//go:generate go tool gqlgen generate
func main() {
- config, err := LoadConfig()
+ cfg, err := config.LoadConfig()
if err != nil {
log.Fatal(err)
}
@@ -32,6 +34,6 @@ func main() {
} else if *createUser {
runCreateUser(database)
} else {
- runServe(database, config)
+ runServe(database, cfg)
}
}