From 8aec1e0eabb8c703cbcdb60f87ce3312f24942f8 Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Sat, 14 Dec 2024 18:06:54 -0700 Subject: [PATCH] repo stub --- cmd/server/main.go | 21 +++++++++++++++++++++ go.mod | 3 +++ 2 files changed, 24 insertions(+) create mode 100644 cmd/server/main.go create mode 100644 go.mod diff --git a/cmd/server/main.go b/cmd/server/main.go new file mode 100644 index 0000000..57bc283 --- /dev/null +++ b/cmd/server/main.go @@ -0,0 +1,21 @@ +package main + +import ( + "context" + "io" + "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 io.EOF +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..6d923f3 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module gitea.inhome.blapointe.com/bel/out + +go 1.22.3