minimal app

This commit is contained in:
nquidox 2026-02-23 18:34:38 +03:00
parent 0c526fd70c
commit d827debd7f
2 changed files with 51 additions and 1 deletions

View file

@ -1,3 +1,24 @@
package main
func main() {}
import (
"context"
log "github.com/sirupsen/logrus"
"merch-api/config"
"merch-api/internal/app"
"os"
"os/signal"
"syscall"
)
func main() {
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer cancel()
cfg := config.NewConfig()
appl := app.New(cfg)
if err := appl.Run(ctx); err != nil {
log.Fatal(err)
}
}