This is a straightforward library illustrating the method to read Server Sent Events (SSE) stream from the Response.Body in Golang.
download the library using
go get -u github.com/mojocn/sseread@latest
simple examples of how to use the library.
# git clone https://github.com/mojocn/sseread.git && cd sseread
go test -v