The reader's four findings (unanswered, view-waits, unsaid, too-large) are laid out by mesh-sdk (design 47 G §687) on the wire form and written through views.WireWriter, which the generic Writer is; the emitter writes view-too-large itself and its TooLarge hook goes; Adopt wires every adopted follower's four callbacks to its reader. Builds: design 47 G §686, §687, §689, A-22, A-26 Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ
12 lines
493 B
Go
12 lines
493 B
Go
package views
|
|
|
|
// PutViewFinding and DropViewFinding write and clear one of a views reader's findings through w, laid out as mesh-sdk lays
|
|
// the reader's own (design 47 G §687), for the tests of package views_test.
|
|
func PutViewFinding(w WireWriter, kind, id, summary, headline string) error {
|
|
return viewFinding{kind: kind, id: id, summary: summary, headline: headline}.put(w)
|
|
}
|
|
|
|
func DropViewFinding(w WireWriter, kind, id string) error {
|
|
return viewFinding{kind: kind, id: id}.drop(w)
|
|
}
|