From f463ea973f7fc04022bbeefbf07fb5ed2290a981 Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Mon, 2 Feb 2026 11:41:18 +0100 Subject: [PATCH] print stats in demo --- main.go | 7 +++++++ pkg/survey.go | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 50d8948..3a5d947 100644 --- a/main.go +++ b/main.go @@ -48,4 +48,11 @@ func main() { fmt.Printf("Issue ID: %s, Title: %s, Status: %s\n", iss.ID, iss.Title, iss.Status) } + stats, err := svc.Statistics.GetStatistics() + if err != nil { + fmt.Println("Error:", err) + os.Exit(1) + } + + fmt.Printf("\nStatistics: %v\n", stats) } diff --git a/pkg/survey.go b/pkg/survey.go index 56d1948..49636e1 100644 --- a/pkg/survey.go +++ b/pkg/survey.go @@ -1,8 +1,9 @@ package pkg import ( - "github.com/LazyBachelor/LazyPM/internal/service" "context" + + "github.com/LazyBachelor/LazyPM/internal/service" ) type SurveyConfig = service.Config