最近发布的主题
暂无
最近发布的文章
暂无
最近分享的资源
暂无
最近发布的项目
暂无
最近的评论
-
从[go1.11](https://golang.google.cn/doc/go1.11)开始不再支持xp了,你可以下载[go1.10](https://golang.google.cn/dl/)进行编译
-
评论了主题 用go写业务接口感觉有点力不从心#11楼 @embraceuu 当种代码多到一定程序后,你会发现消息没有schema是个恶梦。
-
评论了主题 怎么删除gomod低版本包#5楼 @fenglangjuxu `go clean -modcache`不知道是不是你想要的,清除所有mod缓存
-
评论了主题 http.Client 读gzip内容读不全io.Reader接口说明里面讲的很清楚,Read会返回n>0且err=EOF的情况,即读取最后不满buffer长度的数据场景,修改成如下即可。 ```go for { buf := make([] byte, 1024) n,err := reader.Read(buf) if n > 0 { fmt.Println(string(buf)) } if nil != err { return; } } ```
-
评论了博文 golang 你所不知道的 log 和 fmt感谢不会有你讲的问题啊,我在centos8+go1.13.1上测试了,也没有问题啊 ```go ❯ go run ./main.go 2019年10月02日 03:43:13 i: 4 2019年10月02日 03:43:13 i: 5 2019年10月02日 03:43:13 i: 6 2019年10月02日 03:43:13 i: 7 2019年10月02日 03:43:13 i: 8 2019年10月02日 03:43:13 i: 1 2019年10月02日 03:43:13 i: 0 2019年10月02日 03:43:13 i: 2 2019年10月02日 03:43:13 i: 3 2019年10月02日 03:43:13 i: 9 4 5 6 7 8 1 0 2 3 2019年10月02日 03:43:13 36 ❯ go version go version go1.13.1 linux/amd64 ❯ cat /etc/*release CentOS Linux release 8.0.1905 (Core) ```