From b227763df96c8225c3e6611f3227091bc9af7955 Mon Sep 17 00:00:00 2001 From: xushiwei Date: Fri, 2 Aug 2024 03:18:15 +0800 Subject: [PATCH] gopkgimps: list and checkbox --- chore/gopkgimps/gopkgimps.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chore/gopkgimps/gopkgimps.go b/chore/gopkgimps/gopkgimps.go index 2f163a7..66b8f0a 100644 --- a/chore/gopkgimps/gopkgimps.go +++ b/chore/gopkgimps/gopkgimps.go @@ -46,6 +46,9 @@ func main() { return docs[i].ImportedBy > docs[j].ImportedBy }) for _, doc := range docs { - fmt.Println(doc.Path, doc.ImportedBy) + if doc.ImportedBy == 0 { + break + } + fmt.Printf("- [ ] %s (Imported By: %d)\n", doc.Path, doc.ImportedBy) } }