Go語言愛好者周刊:第 168 期 — GoLand 2022.3 RC 發(fā)布
這里記錄每周值得分享的 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)行翻譯。
由于微信公眾號(hào)不支持外鏈,文中大量鏈接可通過文末「閱讀原文」查看。

題圖:GoLand 2022.3 RC 發(fā)布
刊首語
以下代碼輸出什么?
package main
import "fmt"
func main() {
a := (-3) % 2
b := (-3) % (-2)
fmt.Println(a, b)
}
資訊
1、Google Go 風(fēng)格指南[3]
Go Style Guide 和隨附的文檔整理了當(dāng)前編寫可讀和慣用的 Go 的最佳方法。
2、GoLand 2022.3 RC 發(fā)布[4]
正式版不遠(yuǎn)了。
3、NSA 推薦使用類型安全的語言代替 C/C++[5]
推薦的重點(diǎn)包括 Go 和 Rust。
4、lo 1.35 發(fā)布[6]
基于泛型的 Lodash 風(fēng)格庫。
5、rqlite v7.11.0 發(fā)布[7]
輕量的、分布式關(guān)系數(shù)據(jù)庫。
6、slashbase 1.1 發(fā)布[8]
數(shù)據(jù)庫協(xié)作工具。
7、chroma 2.4 發(fā)布[9]
純 Go 實(shí)現(xiàn)的通用語法高亮庫。
8、ElasticSearch Go 8.5 發(fā)布[10]
ElasticSearch Go 8.5 官方客戶端發(fā)布。
9、fzf 0.35.0 發(fā)布[11]
Command-line fuzzy finder。
文章
1、Go標(biāo)準(zhǔn)庫依賴的那些modules
對(duì)于程序員來說,編寫的代碼依賴標(biāo)準(zhǔn)庫是“天經(jīng)地義”的事情。
2、基于 Twitch 的 Go RPC[12]
類似于 gRPC。
3、在 Go 程序中嵌入提交哈希的 3 種方法[13]
清晰的知曉當(dāng)前程序使用的哪個(gè)提交。
本文推選自騰訊云開發(fā)者社區(qū)-【技思廣益 · 騰訊技術(shù)人原創(chuàng)集】專欄。
5、Go每日一庫之實(shí)時(shí)可視化Go Runtime指標(biāo)
在瀏覽器中可以實(shí)時(shí)看到服務(wù)的 runtime 指標(biāo)信息。
6、成為 Go 高手的 8 個(gè) GitHub 開源項(xiàng)目
想成為 Go 高手嗎?那推薦看看這些開源項(xiàng)目。
在這篇文章中,一起去Go 1.20 milestone 的 issues 列表中翻翻,提前看看究竟會(huì)有哪些新特性加入 Go。
開源項(xiàng)目
1、varint[14]
快速、內(nèi)存高效的、支持任意位的整型。
2、golang-lru[15]
LRU 算法的實(shí)現(xiàn)。
3、pie[16]
slice 和 map 便利、通用的操作。
4、tamarin[17]
內(nèi)嵌的腳本語言。
5、go-quartz[18]
小型、零依賴的調(diào)度庫,啟發(fā)自 Java 的 Quartz。
6、memos[19]
開源、自托管的知識(shí)管理和協(xié)作系統(tǒng)。
7、pdf[20]
從 PDF 文件中提取文本。
資源&&工具
1、一致性的 log[21]
基于 Go 官方的結(jié)構(gòu)化日志(視頻)。
2、Go Time 第 256 期[22]
grpc 和 protobuf。
3、sablier[23]
按需啟動(dòng)容器,在沒有活動(dòng)時(shí)自動(dòng)關(guān)閉容器。Docker、Docker Swarm 模式和 Kubernetes兼容。
訂閱
這個(gè)周刊每周日發(fā)布,同步更新在Go語言中文網(wǎng)[24]和微信公眾號(hào)[25]。
微信搜索"Go語言中文網(wǎng)"或者掃描二維碼,即可訂閱。
參考資料
polaris1119/golangweekly: https://github.com/polaris1119/golangweekly
[2]提交 issue: https://github.com/polaris1119/golangweekly/issues
[3]Google Go 風(fēng)格指南: https://google.github.io/styleguide/go/index
[4]GoLand 2022.3 RC 發(fā)布: https://blog.jetbrains.com/go/2022/11/17/goland-2022-3-release-candidate-is-out/
[5]NSA 推薦使用類型安全的語言代替 C/C++: https://www.theregister.com/2022/11/11/nsa_urges_orgs_to_use/
[6]lo 1.35 發(fā)布: https://github.com/samber/lo
[7]rqlite v7.11.0 發(fā)布: https://github.com/rqlite/rqlite/releases/tag/v7.11.0
[8]slashbase 1.1 發(fā)布: https://github.com/slashbaseide/slashbase
[9]chroma 2.4 發(fā)布: https://github.com/alecthomas/chroma
[10]ElasticSearch Go 8.5 發(fā)布: https://github.com/elastic/go-elasticsearch
[11]fzf 0.35.0 發(fā)布: https://github.com/junegunn/fzf/releases/tag/0.35.0
[12]基于 Twitch 的 Go RPC: https://thedevelopercafe.com/articles/rpc-in-go-using-twitchs-twirp-3dcb78ece775
[13]在 Go 程序中嵌入提交哈希的 3 種方法: https://developers.redhat.com/articles/2022/11/14/3-ways-embed-commit-hash-go-programs
[14]varint: https://github.com/1pkg/varint
[15]golang-lru: https://github.com/hashicorp/golang-lru
[16]pie: https://github.com/elliotchance/pie
[17]tamarin: https://github.com/cloudcmds/tamarin
[18]go-quartz: https://github.com/reugn/go-quartz
[19]memos: https://github.com/usememos/memos
[20]pdf: github.com/dslipak/pdf
[21]一致性的 log: https://www.youtube.com/watch?v=gd_Vyb5vEw0
[22]Go Time 第 256 期: https://changelog.com/gotime/256
[23]sablier: https://github.com/acouvreur/sablier
[24]Go語言中文網(wǎng): https://studygolang.com/go/weekly
[25]微信公眾號(hào): https://weixin.sogou.com/weixin?query=Go%E8%AF%AD%E8%A8%80%E4%B8%AD%E6%96%87%E7%BD%91
