snkzt / shortcut-peeper

1 stars 0 forks source link

[TODO] Remove new line for get list #20

Open snkzt opened 1 year ago

snkzt commented 1 year ago

How to remove new line between the print above and the print below for Category Name Shortcut key and result.

name := *name
fmt.Println("Category  Name  Shortcut key")
for _, shortcut := range shortcuts {
  if strings.Contains(shortcut.Name, name) {
    fmt.Printf("%v\t %v\t %v\n", shortcut.Category, shortcut.Name, shortcut.ShortcutKey)
  }
}