Is there a version of ioutil.ReadAll
that will read until it reaches an EOF OR if it reads n
bytes (whichever comes first)?
I cannot just take the first n
bytes from an ioutil.ReadAll
dump for DOS reasons.
Is there a version of ioutil.ReadAll
that will read until it reaches an EOF OR if it reads n
bytes (whichever comes first)?
I cannot just take the first n
bytes from an ioutil.ReadAll
dump for DOS reasons.
是否存在 出于DOS原因,我不能仅从 ioutil.ReadAll code>版本,该版本将一直读取直到达到EOF或 是否读取
n code>个字节(以先到者为准)? p>
ioutil.ReadAll code>转储中获取前
n code>个字节。 p>
div>