From 4f9a11f4f91f02117f79f71ce06eaf27139d9fc1 Mon Sep 17 00:00:00 2001 From: bel Date: Sun, 16 Jul 2023 13:22:40 -0600 Subject: [PATCH] initial --- go.mod | 3 +++ main.go | 16 ++++++++++++++++ src/main.go | 10 ++++++++++ 3 files changed, 29 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..f339afd --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module gogs.inhome.blapointe.com/imicromouse + +go 1.19 diff --git a/main.go b/main.go new file mode 100644 index 0000000..7ed58f0 --- /dev/null +++ b/main.go @@ -0,0 +1,16 @@ +package main + +import ( + "context" + "os/signal" + + "gogs.inhome.blapointe.com/imicromouse/src" +) + +func main() { + ctx, can := signal.NotifyContext(context.Background()) + 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 +}