This commit is contained in:
bel
2026-03-22 19:31:59 -06:00
commit 5b13bd2545
2 changed files with 22 additions and 0 deletions

3
go.mod Normal file
View File

@@ -0,0 +1,3 @@
module gitea/town-ana
go 1.22.2

19
main.go Normal file
View File

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