MCPcopy Create free account
hub / github.com/1buran/rHttp / checkboxHandler

Method checkboxHandler

main.go:755–760  ·  view source on GitHub ↗

Forward message to [Checkbox] handler.

(msg tea.Msg, i int)

Source from the content-addressed store, hash-verified

753
754// Forward message to [Checkbox] handler.
755func (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.
763func loadSession(m model, r io.ReadCloser) (tea.Model, tea.Cmd) {

Callers 1

UpdateMethod · 0.95

Calls 2

checkboxIndexFunction · 0.85
UpdateMethod · 0.45

Tested by

no test coverage detected