Upgrade to Pro — share decks privately, control downloads, hide ads and more …

GoとServer-Sent Events

shuntaka
June 30, 2023
8.8k

GoとServer-Sent Events

shuntaka

June 30, 2023
Tweet

Transcript

  1. *bufio.Scanner *Response.Body (io.Reader) ストリーム読み 取りgoroutine ① ReadEvent ② Response GitHubコード

    改行\n\nで逐次読み出し scanner.Split(splitFunc) メインgoroutine channel ② Response ③ ④ 標準出力 Server-Sent Event