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")
}
var note string
if len(ent["Note"]) > 0 {
- note = "(" + ent["Note"][0] + ")"
+ note = "(" + strings.Trim(ent["Note"][0], " \n") + ")"
}
fmt.Printf(
" @item %d @tab @url{%s,, %s} %s @tab %s @tab\n",