add comment about possible solution

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-06-26 15:10:17 -04:00 committed by Jakub
parent 55af1447e4
commit fbb29afb49
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,8 @@
package main
import (
"log"
"github.com/jroimartin/gocui"
)
@ -18,6 +20,7 @@ var bindings = [...]Binding{
func keybindings(g *gocui.Gui) error {
for _, b := range bindings {
// IDEA: I can pass a method instead of a function here
if err := g.SetKeybinding("", b.Key, b.Mod, b.Handler); err != nil {
return err
}