Skip to content

Commit

Permalink
gopkgimps: list and checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Aug 1, 2024
1 parent 86d2d82 commit b227763
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chore/gopkgimps/gopkgimps.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check warning on line 52 in chore/gopkgimps/gopkgimps.go

View check run for this annotation

qiniu-x / golangci-lint

chore/gopkgimps/gopkgimps.go#L52

use of `fmt.Printf` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
}
}

0 comments on commit b227763

Please sign in to comment.