摘要: 1. io.Reader转化为字符串, byte切片 import "bytes" func StreamToByte(stream io.Reader) []byte { buf := new(bytes.Buffer) buf.ReadFrom(stream) return buf.Bytes( 阅读全文
posted @ 2024-04-10 12:55 X-Wolf 阅读(3) 评论(0) 推荐(0) 编辑