2019-06-04 01:19
浏览 1.5k


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.

图片转代码服务由CSDN问答提供 功能建议

也许我只是不了解如何将 Read 方法用于 File 对象,但是我在文档中看到 io.Reader 位于 multipart.File 接口内,但是我不知道如何访问它。 任何指导将不胜感激。

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • doujun7161 2019-06-04 03:32

    That means that the multipart.File interface includes the io.Reader interface, so any object that is a valid multipart.File is also a valid io.Reader. Therefore, you can call the Read method (as defined by io.Reader) on an object of type multipart.File.

    解决 无用
    打赏 举报

相关推荐 更多相似问题