basebank / gophers-code-reading-party

Gophers Code Reading Party records
18 stars 1 forks source link

20210610 Gophers Code Reading Party #5

Closed budougumi0617 closed 1 year ago

budougumi0617 commented 3 years ago

6月 10日 (木曜日)⋅午後5:00~6:00 https://chouseisan.com/s?h=8013c53247614c13b21830667304f6ab

6月 10日 (木曜日)⋅午後5:00~6:00@ Zoom, BASE BANK, Inc.

参加者

お題

budougumi0617 commented 3 years ago

6/9(水) か6/10(木)の17:00〜18:00が候補

budougumi0617 commented 3 years ago

前回同様木曜日にしようと思います!!! 6月 10日 (木曜日)⋅午後5:00~6:00

budougumi0617 commented 3 years ago

ネタ案 tenntennさんの gostaticanalysis/skeleton がごっついアップデートしたらしいので読んだら楽しそう https://twitter.com/tenntenn/status/1400865265756164098

https://github.com/gostaticanalysis/skeleton/releases/tag/v2.0.0

emahiro commented 3 years ago

ネタ案2

アプリケーションエラーのステータスコードへのマッピングをどこの層でやるか? また、エラーの共通ハンドリング処理を書くかどうか?

うちの会社で盛り上がった内容だったので Bank さんがどんな感じしてるのか?気になりました。

daisuzu commented 3 years ago

https://medium.com/eureka-engineering/pairs-engage-server-side-architecture-c056bd8f598

budougumi0617 commented 3 years ago

アプリケーションエラーのステータスコードへのマッピング

基準はあったほうがいいんだろうけれど、なかなか決められていない。 ハンドラー層にAPIエラーを作るための構造はつくっているけれど、そこのどんな値を設定するのかのマッピングルールはあまり決まっていない。

BANKの構造のイメージ https://speakerdeck.com/hgsgtk/go-api-architecture-practical-example?slide=20

daisuzu commented 3 years ago

https://github.com/tenntenn/testtime

budougumi0617 commented 3 years ago

googleがGoで書いたwebサーバ https://github.com/google/exposure-notifications-server

glassmonkey commented 3 years ago

ネタその3 https://github.com/tenntenn/testtime

daisuzu commented 3 years ago

処理を書き換える系 https://github.com/bouk/monkey

budougumi0617 commented 3 years ago

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".

glassmonkey commented 3 years ago

https://golang.org/pkg/fmt/

%q a double-quoted string safely escaped with Go syntax

知見だった

budougumi0617 commented 3 years ago

fmt pkg のverbs

https://play.golang.org/p/hNufULfOfNW https://golang.org/pkg/fmt/#hdr-Printing

budougumi0617 commented 3 years ago

エラーハンドリングの話

github.com/tenntenn/testtime