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言語】break
Search
Tomoki Ota
August 30, 2024
Programming
0
78
【Go言語】break
breakについて解説します
Tomoki Ota
August 30, 2024
Tweet
Share
More Decks by Tomoki Ota
See All by Tomoki Ota
アーキテクチャの価値
tomo1227
0
110
アーキテクチャとビジネスロジック
tomo1227
0
110
【Go言語】テスト
tomo1227
0
77
【Go言語】クロージャ
tomo1227
0
300
【Go言語】イテレータ
tomo1227
0
97
【Go言語】エラーハンドリング
tomo1227
0
79
AIに淘汰されないようにするには?
tomo1227
0
77
【Go言語】range
tomo1227
0
86
【Go言語】反復処理
tomo1227
0
56
Other Decks in Programming
See All in Programming
Head of Engineeringが現場で回した生産性向上施策 2025→2026
gessy0129
0
200
CDIの誤解しがちな仕様とその対処TIPS
futokiyo
0
120
個人開発は儲からない - それでも開発開始1ヶ月で300万円売り上げた方法
taishiyade
0
120
猫の手も借りたい!ので AIエージェント猫を作って社内に放した話 Claude Code × Container Lambda の Slack Bot "DevNeko"
naramomi7
0
220
Ruby x Terminal
a_matsuda
5
470
今、アーキテクトとして 品質保証にどう関わるか
nealle
0
190
ぼくの開発環境2026
yuzneri
1
290
AI巻き込み型コードレビューのススメ
nealle
2
2.4k
AIエージェントのキホンから学ぶ「エージェンティックコーディング」実践入門
masahiro_nishimi
7
1.2k
AI活用のコスパを最大化する方法
ochtum
0
110
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
280
「ブロックテーマでは再現できない」は本当か?
inc2734
0
1.1k
Featured
See All Featured
Raft: Consensus for Rubyists
vanstee
141
7.3k
How to make the Groovebox
asonas
2
2k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
610
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
110
Color Theory Basics | Prateek | Gurzu
gurzu
0
220
Site-Speed That Sticks
csswizardry
13
1.1k
Leo the Paperboy
mayatellez
4
1.5k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
110
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
180
Unsuck your backbone
ammeep
671
58k
Transcript
Tomoki Ota ʲGoݴޠʳbreak
break defer ΞδΣϯμ 2
break
break 4
break 5 breakจҰ൪ଆͷ forจɺswitchจɺselectจ ͷ࣮ߦΛऴྃͤ͞Δɻ
break 6 Ұ൪ଆ͚ͩͰͳ͘ɺϧʔϓ͔Βbreakͨ͠ ͍߹ɺϥϕϧΛ༻͢Δɻ
7 break
break 8 ϥϕϧΛ༻͍ͨbreakgotoจͱಉ͡Ͱͳ͍ɻ Goͷ׳༻తͳํ๏Ͱ͋Γɺඪ४ϥΠϒϥϦͰΑ͘ ΘΕ͍ͯΔɻ
break 9
break 10
defer
defer 12 deferจʹ༩͑ΒΕͨؔݺͼग़͠ͷ࣮ߦΛΒͤΔ
defer 13 deferจʹ༩͑ΒΕͨؔݺͼग़͠ͷ࣮ߦΛΒͤΔ deferจΛऔΓғΜͰ͍Δ͕ؔreturn͢Δ·Ͱ
defer 14 ӈͷίʔυக໋తͳ͕͋Γ·͢
defer 15 deferΛऔΓғΜͰ͍Δ͕ؔreturnͨ͠ͱ͖ deferʹ༩͑ΒΕ͕࣮ͨؔߦ͞ΕΔɻ ӈͷ߹ͰɺdeferͰͷݺͼग़͠ɺϧʔϓͷ
defer 16