Go Documentation 輪読会 #26
前回: Go Documentation 輪読会 #25
Scrapboxへの参加リンク
こちら
開催概要
Slack
Gophers Slack の doc-reading-ja チャンネルを使います
Connpass: https://gospecreading.connpass.com/
Google Meet: ConnpassにURLを記載しています
タイムテーブル
19:10 ~ 輪読開始
20:00 ~ 10分休憩
20:10 ~ 再開
21:00 終了
今日読むもの
https://github.com/golang/go/issues/61405
https://research.swtch.com/coro
読んでおくといいかも
https://github.com/koron/techdocs/blob/main/coroutines-for-go/memo.md
本日のメモ
https://tip.golang.org/ref/spec#For_statements
https://gospec-previewer.vercel.app/refs/ed38986872e169e60be8b7c37f5dce12957911c2
ZipWithの例
https://gotipplay.golang.org/p/prHKX9jmnvN
https://gotipplay.golang.org/p/fAFu-L0yVNq 実装
iter
https://github.com/golang/go/issues/61897
Pull to Push iterator変換の例
https://gotipplay.golang.org/p/h7Li3Sjb5B_e
// The loop body is called from the iterator function, which is called from the function in which the loop body appears.
/*
1. The loop body
2. the iterator function
3. the function in which the loop body appears
*/
2 でpanic
https://gotipplay.golang.org/p/Ug99jX9NE0B
1 でpanic
https://gotipplay.golang.org/p/oteMj9DrGs7
無名関数増やした版
https://gotipplay.golang.org/p/umwkXZ2xsHI
1でpanic、2でrecover
https://gotipplay.golang.org/p/AZIqm4dNuFu