Read方法读取access.log获取不到数据
打印
rd := bufio.NewReader(f)
出来一下结果

if err == io.EOF {
fmt.Println(err.Error())
time.Sleep(time.Microsecond * 500)
continue在这个位置打印出来一下结果

感觉没有读到access.log文件
access.log和go文件在同一目录下,且内部有数据

打印
rd := bufio.NewReader(f)
出来一下结果

if err == io.EOF {
fmt.Println(err.Error())
time.Sleep(time.Microsecond * 500)
continue在这个位置打印出来一下结果

感觉没有读到access.log文件
access.log和go文件在同一目录下,且内部有数据

2019-03-14
举报