From 5a7429040999ba1f89c0823ff9a5b3681ce0e015 Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Fri, 4 Apr 2025 12:23:27 -0600 Subject: [PATCH] stub --- README.md | 0 go.mod | 3 +++ main.go | 20 ++++++++++++++++++++ main_test.go | 14 ++++++++++++++ 4 files changed, 37 insertions(+) delete mode 100644 README.md create mode 100644 go.mod create mode 100644 main.go create mode 100644 main_test.go diff --git a/README.md b/README.md deleted file mode 100644 index e69de29..0000000 diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..6f0729d --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module gitea/show-ingestion + +go 1.23.3 diff --git a/main.go b/main.go new file mode 100644 index 0000000..e5e3002 --- /dev/null +++ b/main.go @@ -0,0 +1,20 @@ +package main + +import ( + "context" + "os/signal" + "syscall" +) + +func main() { + ctx, can := signal.NotifyContext(context.Background(), syscall.SIGINT) + defer can() + + if err := Run(ctx); err != nil { + panic(err) + } +} + +func Run(ctx context.Context) error { + return nil +} diff --git a/main_test.go b/main_test.go new file mode 100644 index 0000000..fea8799 --- /dev/null +++ b/main_test.go @@ -0,0 +1,14 @@ +package main_test + +import ( + "context" + "testing" + + main "gitea/show-ingestion" +) + +func TestRun(t *testing.T) { + if err := main.Run(context.Background()); err != nil { + t.Fatal(err) + } +}