//
// common ui-support functions
//
common ui-support functions
// // common ui - support functions //
func (ui *Ui) nextView(g *gocui.Gui, v *gocui.View) error {
	nextIndex := (ui.active + 1) % len(ui.viewArr)
	name := ui.viewArr[nextIndex]
	if _, err := setCurrentViewOnTop(g, name); err != nil {
		return err
	}
	ui.active = nextIndex
	return nil
}
func ( ui * Ui ) nextView ( g * gocui . Gui , v * gocui . View ) error { nextIndex := ( ui . active + 1 ) % len ( ui . viewArr ) name := ui . viewArr [ nextIndex ] if _ , err := setCurrentViewOnTop ( g , name ) ; err != nil { return err } ui . active = nextIndex return nil }
common ui-support functions
common ui - support functions