// SetEntries updates the list of menu entries.
SetEntries updates the list of menu entries.
// SetEntries updates the list of menu entries .
func (m *Menu) SetEntries(entries []MenuEntry) {
	m.entries = entries
	m.placeItems()
	if !m.contains(m.active) {
		m.cursorAtLastChoice()
	}
	m.dirty = true
}
func ( m * Menu ) SetEntries ( entries [ ] MenuEntry ) { m . entries = entries m . placeItems ( ) if ! m . contains ( m . active ) { m . cursorAtLastChoice ( ) } m . dirty = true }
SetEntries updates the list of menu entries.
SetEntries updates the list of menu entries .