package main

import (
	"log"

	"github.com/user-management-system/internal/config"
	"github.com/user-management-system/internal/server"
)

func main() {
	// 加载配置
	cfg, err := config.Load()
	if err != nil {
		log.Fatalf("load config failed: %v", err)
	}

	// 启动服务器
	if err := server.Serve(cfg); err != nil {
		log.Fatalf("server failed: %v", err)
	}
}
