package editor type Command interface { Do(lines []string) error //Undo(s *State) error }