buf := new(bytes.Buffer) buf.ReadFrom(yourReader) s := buf.String()
http://stackoverflow.com/questions/9644139/from-io-reader-to-string-in-go
时间: 2024-10-14 16:58:53
buf := new(bytes.Buffer) buf.ReadFrom(yourReader) s := buf.String()
http://stackoverflow.com/questions/9644139/from-io-reader-to-string-in-go