A simple example of HLS streaming with Go for one of my blog's posts(written in spanish, though).
Before starting, remember to install all the required packages.
go install
If everything went correctly, just run the project as always.
go run main.go
This will create a server running on the port 8000 on localhost. Feel free to examine the network tab in your browser to see the streaming working in your browser.