This commit is contained in:
Bel LaPointe
2026-02-03 16:15:22 -07:00
parent f8d0042083
commit bdfd5d307a
3 changed files with 30 additions and 0 deletions

3
go.mod Normal file
View File

@@ -0,0 +1,3 @@
module red-apter
go 1.22.3

17
main.go Normal file
View File

@@ -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)
}
}

10
src/main.go Normal file
View File

@@ -0,0 +1,10 @@
package src
import (
"context"
"io"
)
func Main(ctx context.Context) error {
return io.EOF
}