Closed budougumi0617 closed 1 year ago
6/9(水) か6/10(木)の17:00〜18:00が候補
前回同様木曜日にしようと思います!!! 6月 10日 (木曜日)⋅午後5:00~6:00
ネタ案 tenntennさんの gostaticanalysis/skeleton がごっついアップデートしたらしいので読んだら楽しそう https://twitter.com/tenntenn/status/1400865265756164098
https://github.com/gostaticanalysis/skeleton/releases/tag/v2.0.0
ネタ案2
アプリケーションエラーのステータスコードへのマッピングをどこの層でやるか? また、エラーの共通ハンドリング処理を書くかどうか?
うちの会社で盛り上がった内容だったので Bank さんがどんな感じしてるのか?気になりました。
アプリケーションエラーのステータスコードへのマッピング
基準はあったほうがいいんだろうけれど、なかなか決められていない。 ハンドラー層にAPIエラーを作るための構造はつくっているけれど、そこのどんな値を設定するのかのマッピングルールはあまり決まっていない。
BANKの構造のイメージ https://speakerdeck.com/hgsgtk/go-api-architecture-practical-example?slide=20
googleがGoで書いたwebサーバ https://github.com/google/exposure-notifications-server
処理を書き換える系 https://github.com/bouk/monkey
https://golang.org/cmd/compile/
This special directive does not apply to the Go code that follows it. Instead, the //go:linkname directive instructs the compiler to use “importpath.name” as the object file symbol name for the variable or function declared as “localname” in the source code. If the “importpath.name” argument is omitted, the directive uses the symbol's default object file symbol name and only has the effect of making the symbol accessible to other packages. Because this directive can subvert the type system and package modularity, it is only enabled in files that have imported "unsafe".
https://github.com/tenntenn/testtime
//go:linkname localname [importpath.name]
が挿げ替えに利用されている
内部的には呼び出し元の関数名をつかって複数の時刻情報を使い回せるようだった
現状複数テストには対応していない
6月 10日 (木曜日)⋅午後5:00~6:00 https://chouseisan.com/s?h=8013c53247614c13b21830667304f6ab
6月 10日 (木曜日)⋅午後5:00~6:00@ Zoom, BASE BANK, Inc.
参加者
お題