Maybe I'm just not understanding how to use the Read method for the File object, but I see in docs that io.Reader is within the multipart.File interface, but I don't understand how to access it. Any guidance would be greatly appreciated.
如何将multipart.File转换为io.Reader
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
doujun7161 2019-06-04 03:32关注That means that the
multipart.Fileinterface includes theio.Readerinterface, so any object that is a validmultipart.Fileis also a validio.Reader. Therefore, you can call theReadmethod (as defined byio.Reader) on an object of typemultipart.File.本回答被题主选为最佳回答 , 对您是否有帮助呢?评论 打赏 举报解决 1无用 1