Go語言愛好者周刊:第 139 期 — 一道不一樣的題目
這里記錄每周值得分享的 Go 語言相關(guān)內(nèi)容,周日發(fā)布。本周刊開源(GitHub:polaris1119/golangweekly[1]),歡迎投稿,推薦或自薦文章/軟件/資源等,請提交 issue[2] 。
鑒于一些人可能沒法堅持把英文文章看完,因此,周刊中會盡可能推薦優(yōu)質(zhì)的中文文章。優(yōu)秀的英文文章,我們的 GCTT 組織會進行翻譯。
由于微信公眾號不支持外鏈,文中大量鏈接可通過文末「閱讀原文」查看。

題圖:gh-dash
刊首語
本期是網(wǎng)友「kvii」投遞的一道題。以下程序是否會 panic:
package?main
import?"C"
func?main()?{
?var?ch?chan?struct{}
?<-ch
}
A:會;B:不會
資訊
1、sqlc 1.13 發(fā)布[3]
將 SQL 查詢語句編譯為類型安全的 Go 源碼。
2、sqlboiler 4.9 發(fā)布[4]
基于 Database Schema 生成 Go ORM。
3、mongo-go-driver 1.9.0 發(fā)布[5]
MongoDB 官方的 Go 驅(qū)動。
4、fasthttp 1.35.0 發(fā)布[6]
一個 HTTP 庫。
5、Ebiten 2.2.6 發(fā)布[7]
簡單的 2D 游戲庫。
文章
有32.5%的人使用了C語言、JavaScript,HTML/CSS占比是30%,C++是27.5%,Go是22.5%。
文章中提到的點是每個 Gopher 都應(yīng)該知道的必備知識。
Go 1.18 的新特性:go fuzzing 的使用。
4、Go HTTP服務(wù)優(yōu)雅關(guān)閉中出現(xiàn)的小插曲
實際工作中遇到的問題。
開源項目
1、djinn[8]
使用 Go 開發(fā)的 Djinn CI 平臺。
2、mimir[9]
Grafana Labs 發(fā)布的高性能開源時序數(shù)據(jù)庫。
資源&&工具
1、gh-dash[10]
gh cli 擴展,顯示 dashboard。
2、PacketStreamer[11]
用于云原生環(huán)境的分布式 tcpdump。
3、gobgp[12]
BGP 的 Go 實現(xiàn)。
4、Go Generics 101電子書發(fā)布[13]
Go101 大佬的又一力作。
5、static-go-playground[14]
以靜態(tài)網(wǎng)站形式部署的、直接在瀏覽器中使用Go編譯器的全部功能的go playground。
6、Golang學(xué)習(xí)資源大全[15] ?作者自薦
本項目是記錄自己在學(xué)習(xí)Go語言的過程中遇到的一些優(yōu)秀內(nèi)容,包括優(yōu)秀的學(xué)習(xí)資源或優(yōu)秀的項目代碼等。
訂閱
這個周刊每周日發(fā)布,同步更新在Go語言中文網(wǎng)[16]和微信公眾號[17]。
微信搜索"Go語言中文網(wǎng)"或者掃描二維碼,即可訂閱。
參考資料
polaris1119/golangweekly: https://github.com/polaris1119/golangweekly
[2]提交 issue: https://github.com/polaris1119/golangweekly/issues
[3]sqlc 1.13 發(fā)布: https://github.com/kyleconroy/sqlc
[4]sqlboiler 4.9 發(fā)布: https://github.com/volatiletech/sqlboiler
[5]mongo-go-driver 1.9.0 發(fā)布: https://github.com/mongodb/mongo-go-driver
[6]fasthttp 1.35.0 發(fā)布: https://github.com/valyala/fasthttp
[7]Ebiten 2.2.6 發(fā)布: https://github.com/hajimehoshi/ebiten
[8]djinn: https://github.com/djinn-ci/djinn
[9]mimir: https://github.com/grafana/mimir
[10]gh-dash: https://github.com/dlvhdr/gh-dash
[11]PacketStreamer: https://github.com/deepfence/PacketStreamer
[12]gobgp: https://github.com/osrg/gobgp
[13]Go Generics 101電子書發(fā)布: https://go101.org/generics/101.html#index
[14]static-go-playground: https://github.com/Yeicor/static-go-playground/
[15]Golang學(xué)習(xí)資源大全: https://github.com/LearnGolang/LearnGolang
[16]Go語言中文網(wǎng): https://studygolang.com/go/weekly
[17]微信公眾號: https://weixin.sogou.com/weixin?query=Go%E8%AF%AD%E8%A8%80%E4%B8%AD%E6%96%87%E7%BD%91
