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.File
interface includes theio.Reader
interface, so any object that is a validmultipart.File
is also a validio.Reader
. Therefore, you can call theRead
method (as defined byio.Reader
) on an object of typemultipart.File
.本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 1无用 1