golang从入门到精通,配置日志行号,定位错误位置

配置日志显示行号,准确定位错误位置package mainimport (“log”)func Index() {//SetFlags为标准记录器设置输出标志。默认标志位是Ldate、Ltime等。//log.