From: Sergey Matveev Date: Sun, 10 Jan 2021 17:53:32 +0000 (+0300) Subject: Number of items in category X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;ds=sidebyside;h=5bbfb3ff6b49c0a393fb81f52acca7bb363675df;p=linksexp.git Number of items in category --- diff --git a/main.go b/main.go index cf3ffe5..1ef6d5d 100644 --- 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")