Go語言愛好者周刊:第 83 期
這里記錄每周值得分享的 Go 語言相關(guān)內(nèi)容,周日發(fā)布。
本周刊開源(GitHub:polaris1119/golangweekly[1]),歡迎投稿,推薦或自薦文章/軟件/資源等,請(qǐng)提交 issue[2] 。
鑒于一些人可能沒法堅(jiān)持把英文文章看完,因此,周刊中會(huì)盡可能推薦優(yōu)質(zhì)的中文文章。優(yōu)秀的英文文章,我們的 GCTT 組織會(huì)進(jìn)行翻譯。

題圖:Go1.16 變化一覽,來自 Reddit。
刊首語
這回所有人應(yīng)該都過完春節(jié)要上班了吧。Go 1.16 也已經(jīng)發(fā)布,幾個(gè)重要的新功能大家可以試用試用。祝各位牛年財(cái)源滾滾,技術(shù)不斷高升。今天就不出題了~
誰在招 Gopher
整理近期的 Go 職位。有招聘需求可以到「Go招聘」發(fā)布!
資訊
embed 包和 Apple M1 支持等。
2、esbuild 越來越受歡迎[3]
這是一個(gè) Go 實(shí)現(xiàn)的,非常快速的 JavaScript 捆綁器。
3、GoLand 2021.2 EAP 3[4]
go:embed 支持,同時(shí)還可以針對(duì)遠(yuǎn)程目標(biāo)進(jìn)行編譯。
4、Logrus 1.8 發(fā)布[5]
功能豐富的結(jié)構(gòu)化 Logger。
5、Dapr 1.0 發(fā)布[6]
可移植,事件驅(qū)動(dòng)的分布式應(yīng)用程序運(yùn)行時(shí)。
官方計(jì)劃在 Go1.17 移除 GOPATH。
泛型代碼已經(jīng)合入 master 分支。
文章
官方描述 Once is an object that will perform exactly one action。
2、golang 面試題:能說說 uintptr 和 unsafe.Pointer的區(qū)別嗎?
靈魂拷問!
3、Go 語言標(biāo)準(zhǔn)庫中 atomic.Value 的前世今生
在 Go 語言標(biāo)準(zhǔn)庫中,sync/atomic 包將底層硬件提供的原子操作封裝成了 Go 的函數(shù)。
泛型不遠(yuǎn)了。
gops 旨在幫助開發(fā)人員診斷 Go 進(jìn)程并與之交互。
6、從 Go 的二進(jìn)制文件中獲取其依賴的模塊信息[7]
我們用 Go 構(gòu)建的二進(jìn)制文件中默認(rèn)包含了很多有用的信息。
Go 語言中文網(wǎng)牛年春晚饒大的分享文字版。
在使用 Go 進(jìn)行工作時(shí),使用 io.Reader 和 io.Writer 接口是最常見的情場(chǎng)景之一。這很合理,它們是數(shù)據(jù)傳輸?shù)闹髁涌凇?/p>
開源項(xiàng)目
1、kiara[8]
一個(gè) Pub Sub 的抽象庫,支持 Redis、NATS。
2、wasmer[9]
一個(gè) Go WebAssembly 運(yùn)行時(shí)的實(shí)現(xiàn)。
3、tailetc[10]
全內(nèi)存緩存的 etcd v3 客戶端。
4、opentracing[11]
對(duì) gorm2 的 opentracing 支持。
5、Terratest[12]
一個(gè)可以輕松地為基礎(chǔ)結(jié)構(gòu)代碼編寫自動(dòng)化測(cè)試的 Go 庫。
6、esme[13]
通過 json 配置生成一個(gè)模擬 rest 服務(wù)。
7、dither[14]
一個(gè)高效、正確的圖像抖動(dòng)處理類庫。
8、haraqa[15]
一個(gè)可伸縮消息隊(duì)列,用于微服務(wù)之間的數(shù)據(jù)持久性和實(shí)時(shí)數(shù)據(jù)流傳輸。
9、vektor[16]
快速構(gòu)建生產(chǎn)級(jí)的 Web 服務(wù)。
10、pjson[17]
Go json 流解析器。
11、web-dev-golang-anti-textbook[18]
不使用框架進(jìn)行 Go Web 開發(fā)。
資源&&工具
1、Go 安全性備忘單:8 個(gè)安全性最佳實(shí)踐[19]
英文的。如何寫出安全的 Go 代碼。
2、5 分鐘學(xué)習(xí) embed 包[20]
視頻教程,英文的。
3、pgcenter[21]
用于觀察和排除 Postgres 的命令行工具。目前只支持 Linux 系統(tǒng)。
4、textnote[22]
用于在命令行上創(chuàng)建和組織日常筆記的簡(jiǎn)單工具。
5、mdconv[23]
一款終端使用的 markdown 轉(zhuǎn)換器,支持轉(zhuǎn)為 HTML 和 PDF。
6、pcp[24]
基于 libp2p 的命令行對(duì)等數(shù)據(jù)傳輸工具。
7、signoz[25]
開源的可觀察性平臺(tái)。Datadog 替代品。

8、go-wasm-http-server[26]
在瀏覽器中部署 Go HTTP 服務(wù)器。
9、GopherCon TW 2020[27]
同胞的 Go 大會(huì)。
3 個(gè)多小時(shí),有美女哦!
11、infracost[28]
Terraform 項(xiàng)目的云成本估算工具。
12、go-ml-benchmarks[29]
Go 機(jī)器學(xué)習(xí)框架的性能基準(zhǔn)測(cè)試對(duì)比。
13、Go 播客第 167 期[30]
閱讀文檔的藝術(shù)。
14、shhgit[31]
代碼倉庫中敏感信息的檢測(cè)工具。
15、gdlv[32]
Go 調(diào)試器 dlv 的圖形化前端。
訂閱
這個(gè)周刊每周日發(fā)布,同步更新在Go語言中文網(wǎng)[33]和微信公眾號(hào)[34]。
微信搜索"Go語言中文網(wǎng)"或者掃描二維碼,即可訂閱。
往期推薦Go語言愛好者周刊:第 82 期 — 情人節(jié)快樂
參考資料
polaris1119/golangweekly: https://github.com/polaris1119/golangweekly
[2]提交 issue: https://github.com/polaris1119/golangweekly/issues
[3]esbuild 越來越受歡迎: https://esbuild.github.io/faq/#why-is-esbuild-fast
[4]GoLand 2021.2 EAP 3: https://blog.jetbrains.com/go/2021/02/12/goland-2021-1-eap-3/
[5]Logrus 1.8 發(fā)布: https://github.com/sirupsen/logrus
[6]Dapr 1.0 發(fā)布: https://dapr.io/
[7]從 Go 的二進(jìn)制文件中獲取其依賴的模塊信息: https://juejin.cn/post/6930762439201914893
[8]kiara: https://github.com/genkami/kiara
[9]wasmer: https://github.com/wasmerio/wasmer-go
[10]tailetc: https://github.com/tailscale/tailetc
[11]opentracing: https://github.com/go-gorm/opentracing
[12]Terratest: https://github.com/gruntwork-io/terratest
[13]esme: https://github.com/stkr89/esme
[14]dither: https://github.com/makeworld-the-better-one/dither
[15]haraqa: https://github.com/haraqa/haraqa
[16]vektor: https://github.com/suborbital/vektor
[17]pjson: https://github.com/tidwall/pjson
[18]web-dev-golang-anti-textbook: https://github.com/thewhitetulip/web-dev-golang-anti-textbook
[19]Go 安全性備忘單:8 個(gè)安全性最佳實(shí)踐: https://snyk.io/blog/go-security-cheatsheet-for-go-developers/
[20]5 分鐘學(xué)習(xí) embed 包: https://www.youtube.com/watch?v=mBNIZHHi5Rg&feature=youtu.be
[21]pgcenter: https://github.com/lesovsky/pgcenter
[22]textnote: https://github.com/dkaslovsky/textnote
[23]mdconv: https://github.com/Palexer/mdconv
[24]pcp: https://github.com/dennis-tra/pcp
[25]signoz: https://github.com/SigNoz/signoz
[26]go-wasm-http-server: https://github.com/nlepage/go-wasm-http-server
[27]GopherCon TW 2020: https://space.bilibili.com/756684/channel/detail?cid=169470
[28]infracost: https://github.com/infracost/infracost
[29]go-ml-benchmarks: https://github.com/nikolaydubina/go-ml-benchmarks
[30]Go 播客第 167 期: https://changelog.com/gotime/167
[31]shhgit: https://github.com/eth0izzle/shhgit
[32]gdlv: https://github.com/aarzilli/gdlv
[33]Go語言中文網(wǎng): https://studygolang.com/go/weekly
[34]微信公眾號(hào): https://weixin.sogou.com/weixin?query=Go%E8%AF%AD%E8%A8%80%E4%B8%AD%E6%96%87%E7%BD%91
