A function that takes an int n and a reader io.Reader. It will Read into a byte slice of size n and return the string read into it and an error. If Read returns io.EOF, return that error.
Similar implementation here:
https://gist.githubusercontent.com/vladimirvivien/d4bd2034037c1f057504398bf626f0c0/raw/032033cba03bd251b174b888147bebf33e3c30d3/simple_reader.go
A function that takes an int
nand areaderio.Reader. It willReadinto a byte slice of sizenand return the string read into it and an error. IfReadreturnsio.EOF, return that error.Similar implementation here:
https://gist.githubusercontent.com/vladimirvivien/d4bd2034037c1f057504398bf626f0c0/raw/032033cba03bd251b174b888147bebf33e3c30d3/simple_reader.go