]> Sergey Matveev's repositories - linksexp.git/commitdiff
Number of items in category
authorSergey Matveev <stargrave@stargrave.org>
Sun, 10 Jan 2021 17:53:32 +0000 (20:53 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 10 Jan 2021 17:53:32 +0000 (20:53 +0300)
main.go

diff --git a/main.go b/main.go
index cf3ffe574f0ed94d8f9b8b6c13a6d71abcefb127..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.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")
 
        }
        fmt.Println("@end menu")