一天三个重要Go技术草案,你造么| Gopher Daily (2020.07.22) ʕ◔ϖ◔ʔ
每日一谚:Goroutines give the efficiency of an asynchronous model, but you can write code in a synchronous style. 有意想学习容器或Kubernets的童鞋可以了解一下我的慕课网实战课:k8s实战 - https://coding.imooc.com/class/284.html
1.Go草案:增加io/fs包,定义了只读文件树的接口 - https://github.com/golang/proposal/blob/master/design/draft-iofs.md
type FS interface {Open(name string) (File, error)
}type File interface {Stat() (os.FileInfo, error)Read([]byte) (int, error)Close() error
}
2.Go草案:通过//go:embed将静态文件嵌入Go二进制文件 - https://github.com/golang/proposal/blob/master/design/draft-embed.md3.Go草案:在go工具链中增加模糊测试支持 - https://github.com/golang/proposal/blob/master/design/40307-fuzzing.md
func FuzzXXX(f *testing.F) {... ...
}
4.那些有用的Go工具包 - https://www.golangprograms.com/go-programming-language-packages.html5. gebug: 更好地调试容器化的go应用 - https://github.com/moshebe/gebug6. 使用Grafana,InfluxDB和CollectD监视基础架构 - https://serhack.me/articles/monitoring-infrastructure-grafana-influxdb-connectd/7. 关于编程的一些思考(系列文章) - https://www.benkuhn.net/progessays/8. 为什么python不像Go那样需要一个main函数 - https://utcc.utoronto.ca/~cks/space/blog/python/WhyNoMainFunction
•gopherdaily归档:https://github.com/bigwhite/gopherdaily•编辑:Tony Bai (https://tonybai.com)•邮件订阅:https://gopher-daily.com/