From bdfd5d307a500f88875b42e7e0b322b617008371 Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Tue, 3 Feb 2026 16:15:22 -0700 Subject: [PATCH] initial --- go.mod | 3 +++ main.go | 17 +++++++++++++++++ src/main.go | 10 ++++++++++ 3 files changed, 30 insertions(+) create mode 100644 go.mod create mode 100644 main.go create mode 100644 src/main.go diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..b12275a --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module red-apter + +go 1.22.3 diff --git a/main.go b/main.go new file mode 100644 index 0000000..d0d849b --- /dev/null +++ b/main.go @@ -0,0 +1,17 @@ +package main + +import ( + "context" + "os/signal" + "red-apter/src" + "syscall" +) + +func main() { + ctx, can := signal.NotifyContext(context.Background(), syscall.SIGINT) + defer can() + + if err := src.Main(ctx); err != nil { + panic(err) + } +} diff --git a/src/main.go b/src/main.go new file mode 100644 index 0000000..356bd45 --- /dev/null +++ b/src/main.go @@ -0,0 +1,10 @@ +package src + +import ( + "context" + "io" +) + +func Main(ctx context.Context) error { + return io.EOF +}