main
bel 2023-11-05 07:19:03 -07:00
parent 8e96f9e1ea
commit b8b4e1289b
2 changed files with 19 additions and 0 deletions

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module replicator
go 1.21.1

16
main.go Normal file
View File

@ -0,0 +1,16 @@
package main
import (
"context"
"os/signal"
"syscall"
)
func main() {
ctx, can := signal.NotifyContext(context.Background(), syscall.SIGINT)
defer can()
if err := replicator.Main(ctx); err != nil && ctx.Err() == nil {
panic(err)
}
}