Forward message to [Checkbox] handler.
(msg tea.Msg, i int)
| 753 | |
| 754 | // Forward message to [Checkbox] handler. |
| 755 | func (m *model) checkboxHandler(msg tea.Msg, i int) (tea.Model, tea.Cmd) { |
| 756 | var cmd tea.Cmd |
| 757 | idx := checkboxIndex(i) |
| 758 | m.checkboxes[idx], cmd = m.checkboxes[idx].Update(msg) |
| 759 | return m, cmd |
| 760 | } |
| 761 | |
| 762 | // Load session: create and populate request and response from the given file. |
| 763 | func loadSession(m model, r io.ReadCloser) (tea.Model, tea.Cmd) { |
no test coverage detected