feat: project scaffold, config loading, skeleton main

This commit is contained in:
2026-06-27 12:57:11 +08:00
commit 976ec3ca70
10 changed files with 4430 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
package main
import (
"log/slog"
"os"
"aiaa-notification-service/internal/config"
)
func main() {
logger := slog.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{Level: slog.LevelInfo}))
slog.SetDefault(logger)
cfg, err := config.Load("config/config.yaml")
if err != nil {
slog.Error("failed to load config", "error", err)
os.Exit(1)
}
slog.Info("config loaded", "port", cfg.Server.Port)
}