Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
GoのAirを使ってみた話
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
K1mu21
April 21, 2024
Programming
150
0
Share
GoのAirを使ってみた話
Raccoon Tech Connect #4 での資料です
K1mu21
April 21, 2024
More Decks by K1mu21
See All by K1mu21
dependabotを導入して失敗した話
k1mu21
0
140
Rust勉強会1回目の資料
k1mu21
0
71
ギャレトレ勉強会
k1mu21
0
75
リプレイスでやったこと
k1mu21
1
83
Cloudflareいいぞ
k1mu21
1
140
静的解析ツールを導入した話
k1mu21
1
230
WebGLを触ってみよう
k1mu21
1
62
学生から社会人1年目を通して
k1mu21
2
250
データベースで沼った話
k1mu21
0
80
Other Decks in Programming
See All in Programming
ルールルルルルRubyの中身の予備知識 ── RubyKaigiの前に予習しなイカ?
ydah
1
210
実践CRDT
tamadeveloper
0
600
運転動画を検索可能にする〜Cosmos-Embed1とDatabricks Vector Searchで〜/cosmos-embed1-databricks-vector-search
studio_graph
1
460
第3木曜LT会 #28
tinykitten
PRO
0
110
10年分の技術的負債、完済へ ― Claude Code主導のAI駆動開発でスポーツブルを丸ごとリプレイスした話
takuya_houshima
0
2.6k
事業会社でのセキュリティ長期インターンについて
masachikaura
1
270
PHP で mp3 プレイヤーを実装しよう
m3m0r7
PRO
0
290
AIと共に生きる技術選定 2026
sgash708
0
110
Back to the roots of date
jinroq
0
490
2026-04-15 Spring IO - I Can See Clearly Now
jonatan_ivanov
1
110
PHPer、Cloudflare に引っ越す
suguruooki
1
110
AI時代のPhpStorm最新事情 #phpcon_odawara
yusuke
0
220
Featured
See All Featured
Writing Fast Ruby
sferik
630
63k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
530
Un-Boring Meetings
codingconduct
0
280
GraphQLとの向き合い方2022年版
quramy
50
15k
Believing is Seeing
oripsolob
1
120
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
53k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
280
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
220
Navigating Weather and Climate Data
rabernat
0
170
Abbi's Birthday
coloredviolet
2
7.3k
The Language of Interfaces
destraynor
162
26k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
330
Transcript
GoのAirを使ってみた話 K1mu21
• K1mu21 • 所属 ◦ 株式会社ラクーンホールディングス • 分野 ◦ バックエンド(+フロントエンド)
• 使用言語 ◦ Go,Java,PHP • 最近の趣味 ◦ 皇居ラン • X ◦ @detunote
ふと個人開発してる時に思いました いちいち確認のために go run, compose upするの だるいな...
ふと個人開発してる時に思いました ホットリロード使うかぁ!
使ってみた
Air • go ホットリロードで調べるとAirが一番ヒットしたので使って みた ◦ コードの変更を監視して変更された際に自動的にビルドをし直しアプリ ケーションを再起動するライブラリ
準備 • dockerfile
準備 • docker-compose.yaml
準備 • air initで生成した.air.tomlファイルをそのまま利用(公式Githubにもあります)
実践!!!!!!!!!!
実践!!!!!!!!!! • go mod init AirExample • go mod tidy
• docker compose up -d • curl localhost:8080/example
修正!!!!!!!!!! JSONのMessage をexampleに変更
修正!!!!!!!!!! • curl localhost:8080/example
出来た!!!!!!!!!
まとめ • いちいちgo runや,dockerコンテナを立て直す必要がなくなったので開発体験が良 くなった • Goで作られてることもあり修正のビルドし直しが早くていい • Reactなども今はホットリロードが普通にあるので、これから開発環境にはホットリ ロードがあることが標準になっていくのではないでしょうか?
今回のソースコード https://github.com/k1mu21/AirExample