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

題圖: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 認證服務(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)框架。
文章
gotip 默認啟用了。
Go 目前正在通過新的并發(fā)原語(concurrency primitives)goroutine 和 channel 試圖簡化并發(fā)編程并減少報錯。
本文翻譯自 https://github.com/evrone/go-clean-template。
4、結(jié)合 MySQL 構(gòu)建一個基于 Go 的 REST API 微服務(wù)
在本篇迷你指導(dǎo)中,我會結(jié)合 MySQL 數(shù)據(jù)庫創(chuàng)建一個簡單的 REST-API。
Go 使編寫測試非常簡單。實際上,測試工具是內(nèi)置在標(biāo)準(zhǔn)工具鏈里的,你可以簡單地運行 go test 來運行你的測試,無需安裝任何額外的依賴或任何別的東西。測試包是標(biāo)準(zhǔn)庫的一部分,我很高興地看到它的使用范圍非常廣泛。
DNS 記錄是與 DNS 服務(wù)器關(guān)聯(lián)的映射文件,無論每個域名與哪個 IP 地址關(guān)聯(lián),它們都能處理發(fā)送到每個域名的請求。
7、擔(dān)心密碼提交到 GitHub?建議使用這個 Go 開源工具
今天要分享的這個開源工具,我個人認為更實用,可以當(dāng)作一個 vet 工具使用,切切實實檢查日常開發(fā)經(jīng)常會忽略的安全問題,最常見的,比如將密碼提交到 GitHub 上了。。。
常瀏覽 Go 官方網(wǎng)站的朋友可能留意到,Go 網(wǎng)站近一段時間增加了不少文檔、教程。
開源項目
1、gateway[9]
運行在 AWS Lambda 時,替代 net/http 的 API Gateway。
2、acmez[10]
適用于 Go 的 Premier ACME 客戶端庫。
3、regit-go[11]
一個與 Git 兼容的小型 Git 實現(xiàn)。
4、ledger[12]
一個可編寫腳本的財務(wù)賬簿,旨在使復(fù)雜的財務(wù)交易模型變得容易。
5、plinko[13]
Go 輕量級狀態(tài)機以及基于狀態(tài)機的工作流實現(xiàn)。
6、exatorrent[14]
純 Go 實現(xiàn)的可自托管、易用、輕量級的 torrent 客戶端。
資源&&工具
1、dns-over-https[15]
高性能的 DNS over https。
2、blocky[16]
快速和輕量級的 DNS 代理。
3、go-cosmic-blog[17]
用 Go 和 Cosmic Headless CMS 建立的博客實例。
4、entviz[18]
這是一個 ent 擴展,提供模式圖的可視化。
5、gosq[19]
基于模板的 SQL 查詢生成器。
6、Go 播客第 194 期[20]
別忘了內(nèi)存管理。
訂閱
這個周刊每周日發(fā)布,同步更新在Go語言中文網(wǎng)[21]和微信公眾號[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]微信公眾號: https://weixin.sogou.com/weixin?query=Go%E8%AF%AD%E8%A8%80%E4%B8%AD%E6%96%87%E7%BD%91
