print stats in demo

This commit is contained in:
Robin Olsen
2026-02-02 11:41:18 +01:00
parent 1bd50217a1
commit f463ea973f
2 changed files with 9 additions and 1 deletions

View File

@@ -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)
}

View File

@@ -1,8 +1,9 @@
package pkg
import (
"github.com/LazyBachelor/LazyPM/internal/service"
"context"
"github.com/LazyBachelor/LazyPM/internal/service"
)
type SurveyConfig = service.Config