标签:
buf := new(bytes.Buffer) buf.ReadFrom(yourReader) s := buf.String()
http://stackoverflow.com/questions/9644139/from-io-reader-to-string-in-go
怎样将io.ReadCloser转换成string
原文地址:http://my.oschina.net/deanzhao/blog/364485