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 +}