Sniffing io.Reader contents in Golang Read a small chunk from the beginning of an io.Reader into memory and reuse it golangffmpeg 2022-07-17