dousui6488 2016-06-01 20:38 采纳率: 100%
浏览 237
已采纳

golang:如何从bfio.Reader释放net.Conn

In go I have a net.Conn that I wrap with a bufio.Reader. I want to read and parse certain number of lines from the reader, and then obtain back the control over the net.Conn, obtaining back all the temporary data the reader might still have buffered. Is there an easy way to do it?

  • 写回答

1条回答

      报告相同问题?

      悬赏问题

      • ¥20 b站私信完整导出的方法
      • ¥15 边界图中的x、y轴解释
      • ¥30 如何用matlab求解复杂方程
      • ¥15 VUE TS中怎么调用第三方js
      • ¥15 Activiti如何将值传入textValue
      • ¥20 在linux里安装lummps时 在make mpi里找不到rpc
      • ¥25 python先到先得调度和轮询调度
      • ¥15 SDK Manager闪退
      • ¥15 intel i219v mac地址修改问题
      • ¥15 leetcode上面的题,求解