golang byte to io.reader code example Example: golang reader from byte array r := bytes.NewReader(byteData)