每日一諺: Don’t ignore errors in test code. When something unexpected happens, it』ll fail silently and you』ll just get weird behaviour.
go 中文網每日資訊--2021-02-06一、#公眾號:Go 語言中文網
二、#公眾號:亞軍進化史
三、#公眾號:代碼與遠方
四、#公眾號:吳親強的深夜食堂
五、#公眾號:k8s 技術圈
六、#公眾號:五分選手
來源: https://studygolang.com/go/godaily
GOCN 每日新聞--2021-02-061.Go 與 C 的橋梁:CGO 入門剖析與實踐
2.Go embed 簡明教程
3.手擼 golang 行為型設計模式 模板方法模式[2]
4.聊聊 dubbo-go-proxy 的 recoveryFilter [3]
5.brew3.0.0 發布 [4]
來源:https://gocn.vip/topics/node18
gopherDaily--2021-02-061.Go 1.15.8 和 Go 1.14.15 發布[5]
5.您不需要 Dockerfile 即可構建 Go 容器[9]
6.Github 上最受歡迎的 Go 入門項目列表 [10]
7.使用 Go 將數據從 Postgres 資料庫流式傳輸到 Web[11]
8.經典舊文:不要將對可寫文件的關閉傳給 defer[12]
9.適用於 Go 的 AWS 開發工具包中的 AWS SSO 支持[13]
10.brew 3.0.0 發布,支持 M1 晶片[14]
11.使用 OpenFaaS function 擴展和自動化自託管 gitea [15]
來源:https://gopher-daily.com/
碼農桃花源--2021-02-06 優質文章匯總面試問題redis 重寫 AOF 文件的過程是否會影響伺服器處理客戶端請求嗎?
redis 設置 AOF 重寫緩衝區解決什麼問題?
100 個球,一次只能拿 2-5 個,你先拿,我後拿,怎麼保證你能拿到最後一個球
布隆過濾器怎麼設置 m,n,k 的值,怎麼合理安排 key(用戶和 item 越來越多,怎麼保證內存不會爆)
聚簇索引什麼特點,為什麼這樣,順序查詢的實現,回表查詢,聯合索引特性
假設銷售團隊擁有一張帳目表 account,表中每行記錄記錄著銷售員 2016 年到 2018 年每個月的銷售額,如果銷售員當月沒有銷售額,則不錄入到表中,目前管理員想查看下 2018 年每個月都有銷售額的銷售人員的總銷售額, 那麼 sql 語句是?
var a []int 和 a := []int{}是否有區別
IO 模型了解嗎?講下 select/poll/epoll?各自優劣、底層實現、使用場景?
優雅關閉 tcp 連接,說一下 shutdown 和 close?
編輯: Amartya 果果
更多內容詳見:https://www.yuque.com/qcrao/share/
關注公眾號回覆:微信,拉你入群。
參考資料[1]Go 技術日報(2021-02-05)——Golang 中 nil==nil 是對是錯?: https://studygolang.com/topics/13090
[2]手擼 golang 行為型設計模式 模板方法模式: https://segmentfault.com/a/1190000039181355
[3]聊聊 dubbo-go-proxy 的 recoveryFilter : https://segmentfault.com/a/1190000039181809
[4]brew3.0.0 發布 : https://brew.sh/2021/02/05/homebrew-3.0.0/
[5]Go 1.15.8 和 Go 1.14.15 發布: https://groups.google.com/g/golang-announce/c/rUbPPotvaFM/m/H4ZrXHUmBAAJ
[6]使用 Go 語言開發的利與弊: https://codism.io/pros-and-cons-of-golang-development
[7]點對點應用開發庫 libp2p 入門 : https://dev.to/feliperosa/getting-started-with-libp2p-in-go-4hoa
[8]Go 語法速查表: https://github.com/a8m/golang-cheat-sheet
[9]您不需要 Dockerfile 即可構建 Go 容器: https://petomalina.medium.com/you-dont-need-a-dockerfile-to-build-a-go-container-a511617235bf
[10]Github 上最受歡迎的 Go 入門項目列表 : https://www.agiratech.com/blog/top-golang-github-projects-and-repositories-to-get-started
[11]使用 Go 將數據從 Postgres 資料庫流式傳輸到 Web: https://itnext.io/stream-data-from-postgres-to-web-using-go-backend-bd7d7527fe27
[12]經典舊文:不要將對可寫文件的關閉傳給 defer: https://www.joeshaw.org/dont-defer-close-on-writable-files/
[13]適用於 Go 的 AWS 開發工具包中的 AWS SSO 支持: https://aws.amazon.com/cn/blogs/developer/aws-sso-support-in-the-aws-sdk-for-go/
[14]brew 3.0.0 發布,支持 M1 晶片: https://brew.sh/2021/02/05/homebrew-3.0.0/
[15]使用 OpenFaaS function 擴展和自動化自託管 gitea : https://www.openfaas.com/blog/gitea-faas/
[16]圖解 slub: http://www.wowotech.net/memory_management/426.html
[17]nginx 平滑的基於權重輪詢算法分析: https://tenfy.cn/2018/11/12/smooth-weighted-round-robin/
[18]linux 內存管理之反向映射: https://www.cnblogs.com/arnoldlu/p/8335483.html
[19]goroutine 並發控制與通信: https://strikefreedom.top/goroutine-concurrency-control-and-communication