跟着学习就好
哈哈,看了最后一节课,看到了答案
当然不会,每读一行,指针就会往后移一行
https://github.com/itsmikej/imooc_logprocess/blob/master/full/log_process_full.go 这个完整版里解决了切割的问题