blk/cmd/app/main.go

20 lines
284 B
Go
Raw Permalink Normal View History

2024-08-11 01:51:18 +00:00
package main
import (
"context"
"os"
"os/signal"
"syscall"
"github.com/optclblast/blk/internal/app"
)
func main() {
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer stop()
if err := app.Init(ctx); err != nil {
panic(err)
}
}