Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForEachDataLine ¶
ForEachDataLine scans an SSE stream and invokes fn for each data line.
It supports both plain `data: ...` streams and named events using `event: ...` followed by `data: ...`.
For closable readers, cancellation and early termination close the reader to unblock any in-flight Read and wait for the scanner goroutine to exit.
Types ¶
Click to show internal directories.
Click to hide internal directories.