I used the bufio flush mechanism
https://pkg.go.dev/bufio#Writer.Flush
Thanks for your comment, I'll definitely check it out. It was my first attempt at this. How can I make it better?
Thanks for your comment, I'll definitely check it out. It was my first attempt at this. How can I make it better?