text/event-stream is not text/html. text/event-stream is exactly that: a stream of (plain text) messages. If you point a browser directly at this URL, it will render the stream as plain text.
If you want pretty rendering, what you need is a wrapper HTML page which contains some Javascript to read the event stream and insert the events into your HTML page as they arrive. The concepts aren't Go-specific, so any page that talks about event stream (aka "server-sent events" or "eventsource") should help you. Here are the first few I found: https://www.html5rocks.com/en/tutorials/eventsource/basics/ https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events https://www.w3schools.com/html/html5_serversentevents.asp -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/16a4874c-2462-45d5-a94e-9eaa0faf6b22o%40googlegroups.com.