chore: establish local platform baseline

This commit is contained in:
Codex Local
2026-08-26 06:41:54 +08:00
commit 29bdf4900f
575 changed files with 95644 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
package main
import (
"context"
"log"
"os/signal"
"syscall"
"data-terminal-cloud/internal/app"
)
type applicationRunner func(context.Context, string) error
func run(ctx context.Context, runner applicationRunner) error {
return runner(ctx, "api")
}
func main() {
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
defer stop()
if err := run(ctx, app.Run); err != nil {
log.Fatal(err)
}
}