]> Sergey Matveev's repositories - linksexp.git/blobdiff - main.go
Number of items in category
[linksexp.git] / main.go
diff --git a/main.go b/main.go
index 6df487a4d4f5f5304182d0611b30bfe6b6ac9f1b..1ef6d5da2916c84ea0a86d490c75c28ea54339e3 100644 (file)
--- a/main.go
+++ b/main.go
@@ -125,7 +125,7 @@ func main() {
        fmt.Println("@menu")
        fmt.Println("Categories:")
        for _, cat := range cats {
-               fmt.Printf("* %s: LinksCat%s\n", cat, cat)
+               fmt.Printf("* %s (%d items): LinksCat%s\n", cat, len(data[cat]), cat)
        }
        fmt.Println("@end menu")
 
@@ -147,7 +147,7 @@ func main() {
                                note = "(" + ent["Note"][0] + ")"
                        }
                        fmt.Printf(
-                               "  @item %d @tab @url{%s, %s} %s @tab %s @tab\n",
+                               "  @item %d @tab @url{%s,, %s} %s @tab %s @tab\n",
                                n, ent["URL"][0], ent["Title"][0], note,
                                strings.Join(catsOther, ", "),
                        )