Golang
文章平均质量分 72
青春张开
中国计算机学会会员
展开
-
Golang日志轮询
背景lestrrat-go/file-rotatelogs 项目已经归档了,但是其自身存在一些缺陷。https://github.com/iproj/file-rotatelogs 对下述问题进行了修复,并投入大规模线上使用,运行平稳iproj/file-rotatelogs + logrus 可以作为入门golang 日志使用的最佳实践lestrrat-go/file-rotatelogs 缺陷No longer output log, when too much log output rota原创 2022-04-27 00:36:59 · 667 阅读 · 0 评论 -
Golang升级1.3 发现Bug
Go升级用最新包,记得要在自己的程序库中先makeclean(删除原先的.ma文件),再make下(Makefile文件中有 go install ../...)采用压缩包安装的go,通过IDE跳转可以很快定位源码以一个例子来说明gifConf, err1 := gif.DecodeAll(imgSource) //这里的DecodeAll调用的image/gif库里的源码func DecodeAll(r io.Reader) (*GIF, error) {var d decode.原创 2014-09-22 16:40:34 · 1248 阅读 · 0 评论