github.com/oweisse/u-root@v0.0.0-20181109060735-d005ad25fef1/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 }