diff --git a/cmd/main.go b/cmd/main.go new file mode 100644 index 0000000..c937ece --- /dev/null +++ b/cmd/main.go @@ -0,0 +1,10 @@ +package cmd + +import ( + "context" + "io" +) + +func Main(ctx context.Context) error { + return io.EOF +} diff --git a/go.mod b/go.mod index 3e287a5..268999e 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module gitea/turbomaps-er +module turbomaps-er go 1.24.2 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..e69de29 diff --git a/main.go b/main.go new file mode 100644 index 0000000..fc4d586 --- /dev/null +++ b/main.go @@ -0,0 +1,16 @@ +package main + +import ( + "context" + "os/signal" + "syscall" + "turbomaps-er/cmd" +) + +func main() { + ctx, can := signal.NotifyContext(context.Background(), syscall.SIGINT) + defer can() + if err := cmd.Main(ctx); err != nil { + panic(err) + } +}