prompt 1,2,3

This commit is contained in:
fabio
2026-02-22 17:36:16 +01:00
parent e9d7941c7e
commit be462b814c
18 changed files with 714 additions and 3 deletions

24
cmd/server/main.go Normal file
View File

@@ -0,0 +1,24 @@
package main
import (
"log"
"trustcontact/internal/app"
"trustcontact/internal/config"
)
func main() {
cfg, err := config.Load()
if err != nil {
log.Fatalf("config load failed: %v", err)
}
server, err := app.NewApp(cfg)
if err != nil {
log.Fatalf("app init failed: %v", err)
}
if err := server.Listen(":" + cfg.Port); err != nil {
log.Fatalf("server listen failed: %v", err)
}
}