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

題圖:來自網絡
刊首語
這次來一道簡單的題目:
package?main
import?(
?"fmt"
)
func?main()?{
?c?:=?make(chan?int,?5)
?c?<-?5
?c?<-?6
?close(c)
?fmt.Println(<-c)
}
資訊
1、Kratos 2.1 發(fā)布[3]
一個國產的 Go 微服務框架。
Rob Pike 發(fā)話。
3、怎么回事?Go 標準庫 sync 包中竟然包含一個 porn 網址
有點無語。。。
文章
今天分享一篇文章,更多是和 Go 相關。不過從標題可以看到,某些時候,Go 需要較好的優(yōu)化,才能避免需要使用 Rust 重寫。
本文主要對項目轉換為模塊的工具和技術進行講解敘述。
3、Golang 無限開啟 Goroutine?該如何限定 Goroutine 數量?[4]
如果不控制 Goroutine 的數量會出什么問題?
4、GRPC: 如何讓 gRPC 提供 Swagger UI?[5]
本文將介紹如何讓一個 gRPC 服務之上提供 Swagger UI。
5、使用 goland 進行 go 源碼調試[6]
本文中調試的 go 源碼為 1.14.12 版本,本文介紹的調試方法與 go 版本沒有關系。
分享一下一位群友從網工到Gopher的面試經歷,希望大家能從中有所收獲。
本文將從 etcd 的應用場景開始,深入解讀 etcd 的實現(xiàn)方式,以供開發(fā)者們更為充分地享用 etcd 所帶來的便利。
開源項目
1、decimal[7]
Go 中的任意精度定點十進制數。
2、truthy[8]
使用 Go 泛型提供了真值條件測試。
3、broadcast[9]
Go 中的通知廣播。
4、tile38[10]
實時地理空間和地理圍欄數據庫。
5、goic[11]
Golang 的 OpenID 連接客戶端庫。
6、gojtp[12]
Go 中的高性能、零分配、動態(tài) JSON 威脅防護。
7、igop[13]
Go+腳本版: Go+解釋器項目開源。
資源&&工具
1、hostsfile[14]
用于處理 /etc/hosts 文件的工具。
2、depstat[15]
Kubernetes 的 Go module 依賴更新分析器,大型 Go 項目都適用。
3、ansisvg[16]
基于 ANSI 輸出轉換為 SVG 圖片。

4、ddosify[17]
Go 實現(xiàn)的高性能壓測工具。
5、chatbot[18]
一個快速響應的聊天機器人。
6、播客第 198 期[19]
Go 團隊是如何運轉的。
訂閱
這個周刊每周日發(fā)布,同步更新在Go語言中文網[20]和微信公眾號[21]。
微信搜索"Go語言中文網"或者掃描二維碼,即可訂閱。
參考資料
polaris1119/golangweekly: https://github.com/polaris1119/golangweekly
[2]提交 issue: https://github.com/polaris1119/golangweekly/issues
[3]Kratos 2.1 發(fā)布: https://github.com/go-kratos/kratos
[4]Golang 無限開啟 Goroutine?該如何限定 Goroutine 數量?: https://juejin.cn/post/7017286487502766093
[5]GRPC: 如何讓 gRPC 提供 Swagger UI?: https://juejin.cn/post/7017396592428711972
[6]使用 goland 進行 go 源碼調試: https://juejin.cn/post/7016875587792797733
[7]decimal: https://github.com/shopspring/decimal
[8]truthy: https://github.com/carlmjohnson/truthy
[9]broadcast: https://github.com/teivah/broadcast
[10]tile38: https://github.com/tidwall/tile38
[11]goic: https://github.com/adhocore/goic
[12]gojtp: https://github.com/ankur-anand/gojtp
[13]igop: https://github.com/goplus/igop
[14]hostsfile: https://github.com/kevinburke/hostsfile
[15]depstat: https://github.com/kubernetes-sigs/depstat
[16]ansisvg: https://github.com/wader/ansisvg
[17]ddosify: https://github.com/ddosify/ddosify
[18]chatbot: https://github.com/kevwan/chatbot
[19]播客第 198 期: https://changelog.com/gotime/198
[20]Go語言中文網: https://studygolang.com/go/weekly
[21]微信公眾號: https://weixin.sogou.com/weixin?query=Go%E8%AF%AD%E8%A8%80%E4%B8%AD%E6%96%87%E7%BD%91
