func (e *Edit) SetText(s *string, end bool) {
	e.target = s
	e.display = []rune(*s)
	e.at = 0

	// send synthesized key to position cursor and text
	ev := termbox.Event{}
	if end {
		ev.Key = termbox.KeyCtrlE
	} else {
		ev.Key = termbox.KeyCtrlA
	}
	e.KeyHandler(ev)
}
func (e *Edit) SetText(s *string, end bool) {
	e.target = s
	e.display = []rune(*s)
	e.at = 0

	// send synthesized key to position cursor and text
	ev := termbox.Event{}
	if end {
		ev.Key = termbox.KeyCtrlE
	} else {
		ev.Key = termbox.KeyCtrlA
	}
	e.KeyHandler(ev)
}
func ( e * Edit ) SetText ( s * string , end bool ) { e . target = s e . display = [ ] rune ( * s ) e . at = 0 // send synthesized key to position cursor and text ev := termbox . Event { } if end { ev . Key = termbox . KeyCtrlE } else { ev . Key = termbox . KeyCtrlA } e . KeyHandler ( ev ) }
// SetText sets the edit text.  if end is set to true the cursor and text will
// be set to the end of the string.  This will not be displayed immediately.
// SetText shall be called from queue context.
SetText sets the edit text . if end is set to true the cursor and text will be set to the end of the string . This will not be displayed immediately . SetText shall be called from queue context .