Goに再入門する
新規作成 2021-7-11
Go Conference 2021 Autumn
TinyGo ハンズオンA
メモ
組込みハンズオン。READMEが充実してて、テーマが多い。WiFi
Write an embedded time-series database in Go
メモ
時系列データを自作埋め込みDBのGo実装の設計を紹介
Goでbitを表現する方法、io.Seekerの紹介あり
いつかやろうと思っていてやってみた。半日くらいかかった。
無料。かなりいい。
READMEにメモ記載。
getter/setter で、Getプレフィックスはつけなくてもいい(Setはつける)。
type assertion注意点
But if it turns out that the value does not contain a string, the program will crash with a run-time error. To guard against that, use the "comma, ok" idiom to test, safely, whether the value is a string
How do we turn that into an HTTP server? のところの書き方使えそう。
but it's legal and idiomatic in Go to do this. You get a fresh version of the variable with the same name, deliberately shadowing the loop variable locally but unique to each goroutine.
次はこれを読む
Goのinterfaceについて。設計としての読み物。effective goやcode generate系ツールへの参照もあるので良さそう。
ざっと見て、どんなものがあるのか確認すると良さそう。