github.com/shaardie/u-root@v4.0.1-0.20190127173353-f24a1c26aa2e+incompatible/cmds/elvish/edit/eddefs/mode.go (about) 1 package eddefs 2 3 import ( 4 "github.com/u-root/u-root/cmds/elvish/edit/ui" 5 "github.com/u-root/u-root/cmds/elvish/eval" 6 ) 7 8 // Mode is an editor mode. 9 type Mode interface { 10 ModeLine() ui.Renderer 11 Binding(ui.Key) eval.Callable 12 Teardown() 13 }