首次提交:初始化项目代码

This commit is contained in:
sunct
2026-07-31 14:44:48 +08:00
commit a4fe393571
119 changed files with 29105 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
// Package main 是简历平台服务的入口程序
// 负责调用 bootstrap 启动服务
package main
import (
"context"
"fmt"
"os"
"os/signal"
"syscall"
"resume-platform/internal/bootstrap"
)
func main() {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
sigChan := make(chan os.Signal, 1)
signal.Notify(sigChan, syscall.SIGINT, syscall.SIGTERM)
go func() {
<-sigChan
cancel()
}()
if err := bootstrap.Run(ctx); err != nil {
fmt.Printf("Server failed to start: %v\n", err)
os.Exit(1)
}
}