Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

26 righe
446 B

  1. package main
  2. import (
  3. "context"
  4. "log"
  5. "os/signal"
  6. "syscall"
  7. "github.com/AFASystems/presence/internal/app/location"
  8. "github.com/AFASystems/presence/internal/pkg/config"
  9. )
  10. func main() {
  11. ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGTERM, syscall.SIGINT)
  12. defer stop()
  13. cfg := config.LoadLocation()
  14. app, err := location.New(cfg)
  15. if err != nil {
  16. log.Fatalf("location: %v", err)
  17. }
  18. app.Run(ctx)
  19. app.Shutdown()
  20. }