More Related Content
Similar to 筋肉によるGoコードジェネレーション (20)
筋肉によるGoコードジェネレーション
- 2. • @lestrrat
• Perl/Go hacker, author, father
• Author of github.com/peco/peco
• Organizer for builderscon
- 25. • schemalex/schemalex
• go-jsval
• go-libxml2
internal/cmd/gen*
• go-slack
• go-msgpack
• go-ical
• go-jsschema
拙作のライブラリではinternal以下にコマンドを
仕込んでおき、go generateから呼んでる
internal 以下なら
godocには載らないんじゃ!
- 43. Tip: CIでgit diffをチェック
• 生成されたファイルがチャントコミットできてるか確認
• 結構漏れるので注意
• トラックされていないファイルは “git ls-files --
others —exclude-standard"
https://github.com/lestrrat/go-slack/blob/master/scripts/check-diff.sh