From io.Reader to string in Go

后端 未结 7 1183
生来不讨喜
生来不讨喜 2020-12-04 05:58

I have an io.ReadCloser object (from an http.Response object).

What\'s the most efficient way to convert the entire stream to a strin

7条回答
提交回复
热议问题