Files
oh-my-opencode/packages/omo-codex/plugin/skills/programming/scripts/go/templates/main.go.tmpl
T
2026-05-30 19:12:14 +09:00

23 lines
329 B
Cheetah

package main
import (
"context"
"log/slog"
"os"
"os/signal"
"syscall"
"$module/internal/cmd"
)
func main() {
ctx, stop := signal.NotifyContext(context.Background(),
syscall.SIGINT, syscall.SIGTERM)
defer stop()
if err := cmd.Execute(ctx); err != nil {
slog.Error("fatal", slog.Any("err", err))
os.Exit(1)
}
}