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

題圖:dns over https
刊首語
以下代碼輸出什么?
func main() {
v := math.Log(-1)
m := map[float64]int{v: 1, v: 2, v: 3}
fmt.Println(m[v], len(m))
}
資訊
1、Gitea 1.15.0 發(fā)布[3]
流行的基于 Go 的 Git 系統(tǒng)。
2、GLAuth 2.0 發(fā)布[4]
LDAP 認(rèn)證服務(wù)器。
3、GitHub CLI 2.0 發(fā)布[5]
官方 GitHub CLI 客戶端。
4、rqlite 6.2 發(fā)布[6]
支持參數(shù)化 SQL 語句。
5、slides 0.5.0 發(fā)布[7]
基于終端的 slidedeck 工具。
6、Go Micro 3.6.0 發(fā)布[8]
分布式系統(tǒng)框架。
文章
1、揚(yáng)眉吐氣:剛剛,Go 已經(jīng)默認(rèn)支持泛型了
gotip 默認(rèn)啟用了。
2、Go 中的并發(fā) bug 在真實(shí)場景的情況分析
Go 目前正在通過新的并發(fā)原語(concurrency primitives)goroutine 和 channel 試圖簡化并發(fā)編程并減少報(bào)錯(cuò)。
本文翻譯自 https://github.com/evrone/go-clean-template。
4、結(jié)合 MySQL 構(gòu)建一個(gè)基于 Go 的 REST API 微服務(wù)
在本篇迷你指導(dǎo)中,我會(huì)結(jié)合 MySQL 數(shù)據(jù)庫創(chuàng)建一個(gè)簡單的 REST-API。
Go 使編寫測試非常簡單。實(shí)際上,測試工具是內(nèi)置在標(biāo)準(zhǔn)工具鏈里的,你可以簡單地運(yùn)行 go test 來運(yùn)行你的測試,無需安裝任何額外的依賴或任何別的東西。測試包是標(biāo)準(zhǔn)庫的一部分,我很高興地看到它的使用范圍非常廣泛。
DNS 記錄是與 DNS 服務(wù)器關(guān)聯(lián)的映射文件,無論每個(gè)域名與哪個(gè) IP 地址關(guān)聯(lián),它們都能處理發(fā)送到每個(gè)域名的請求。
7、擔(dān)心密碼提交到 GitHub?建議使用這個(gè) Go 開源工具
今天要分享的這個(gè)開源工具,我個(gè)人認(rèn)為更實(shí)用,可以當(dāng)作一個(gè) vet 工具使用,切切實(shí)實(shí)檢查日常開發(fā)經(jīng)常會(huì)忽略的安全問題,最常見的,比如將密碼提交到 GitHub 上了。。。
常瀏覽 Go 官方網(wǎng)站的朋友可能留意到,Go 網(wǎng)站近一段時(shí)間增加了不少文檔、教程。
開源項(xiàng)目
1、gateway[9]
運(yùn)行在 AWS Lambda 時(shí),替代 net/http 的 API Gateway。
2、acmez[10]
適用于 Go 的 Premier ACME 客戶端庫。
3、regit-go[11]
一個(gè)與 Git 兼容的小型 Git 實(shí)現(xiàn)。
4、ledger[12]
一個(gè)可編寫腳本的財(cái)務(wù)賬簿,旨在使復(fù)雜的財(cái)務(wù)交易模型變得容易。
5、plinko[13]
Go 輕量級狀態(tài)機(jī)以及基于狀態(tài)機(jī)的工作流實(shí)現(xiàn)。
6、exatorrent[14]
純 Go 實(shí)現(xiàn)的可自托管、易用、輕量級的 torrent 客戶端。
資源&&工具
1、dns-over-https[15]
高性能的 DNS over https。
2、blocky[16]
快速和輕量級的 DNS 代理。
3、go-cosmic-blog[17]
用 Go 和 Cosmic Headless CMS 建立的博客實(shí)例。
4、entviz[18]
這是一個(gè) ent 擴(kuò)展,提供模式圖的可視化。
5、gosq[19]
基于模板的 SQL 查詢生成器。
6、Go 播客第 194 期[20]
別忘了內(nèi)存管理。
訂閱
這個(gè)周刊每周日發(fā)布,同步更新在Go語言中文網(wǎng)[21]和微信公眾號(hào)[22]。
微信搜索"Go語言中文網(wǎng)"或者掃描二維碼,即可訂閱。
往期推薦
參考資料
polaris1119/golangweekly: https://github.com/polaris1119/golangweekly
[2]提交 issue: https://github.com/polaris1119/golangweekly/issues
[3]Gitea 1.15.0 發(fā)布: https://blog.gitea.io/2021/08/gitea-1.15.0-is-released/
[4]GLAuth 2.0 發(fā)布: https://github.com/glauth/glauth
[5]GitHub CLI 2.0 發(fā)布: https://github.com/cli/cli/releases/tag/v2.0.0
[6]rqlite 6.2 發(fā)布: https://github.com/rqlite/rqlite/releases/tag/v6.2.0
[7]slides 0.5.0 發(fā)布: https://github.com/maaslalani/slides/releases/tag/v0.5.0
[8]Go Micro 3.6.0 發(fā)布: https://github.com/asim/go-micro
[9]gateway: https://github.com/apex/gateway
[10]acmez: https://github.com/mholt/acmez
[11]regit-go: https://github.com/WithGJR/regit-go
[12]ledger: https://github.com/numary/ledger
[13]plinko: https://github.com/shipt/plinko
[14]exatorrent: https://github.com/varbhat/exatorrent
[15]dns-over-https: https://github.com/m13253/dns-over-https
[16]blocky: https://github.com/0xERR0R/blocky
[17]go-cosmic-blog: https://github.com/cosmicjs/go-cosmic-blog
[18]entviz: https://github.com/hedwigz/entviz
[19]gosq: https://github.com/sanggonlee/gosq
[20]Go 播客第 194 期: https://changelog.com/gotime/194
[21]Go語言中文網(wǎng): https://studygolang.com/go/weekly
[22]微信公眾號(hào): https://weixin.sogou.com/weixin?query=Go%E8%AF%AD%E8%A8%80%E4%B8%AD%E6%96%87%E7%BD%91
