print stats in demo
This commit is contained in:
7
main.go
7
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)
|
||||
}
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
package pkg
|
||||
|
||||
import (
|
||||
"github.com/LazyBachelor/LazyPM/internal/service"
|
||||
"context"
|
||||
|
||||
"github.com/LazyBachelor/LazyPM/internal/service"
|
||||
)
|
||||
|
||||
type SurveyConfig = service.Config
|
||||
|
||||
Reference in New Issue
Block a user