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
52
【Go言語】break
breakについて解説します
Tomoki Ota
August 30, 2024
Tweet
Share
More Decks by Tomoki Ota
See All by Tomoki Ota
アーキテクチャの価値
tomo1227
0
71
アーキテクチャとビジネスロジック
tomo1227
0
78
【Go言語】テスト
tomo1227
0
43
【Go言語】クロージャ
tomo1227
0
230
【Go言語】イテレータ
tomo1227
0
55
【Go言語】エラーハンドリング
tomo1227
0
50
AIに淘汰されないようにするには?
tomo1227
0
46
【Go言語】range
tomo1227
0
45
【Go言語】反復処理
tomo1227
0
29
Other Decks in Programming
See All in Programming
Team operations that are not burdened by SRE
kazatohiei
1
310
Result型で“失敗”を型にするPHPコードの書き方
kajitack
5
600
VS Code Update for GitHub Copilot
74th
2
620
PHPでWebSocketサーバーを実装しよう2025
kubotak
0
270
明示と暗黙 ー PHPとGoの インターフェイスの違いを知る
shimabox
2
480
PHP 8.4の新機能「プロパティフック」から学ぶオブジェクト指向設計とリスコフの置換原則
kentaroutakeda
2
750
Kotlin エンジニアへ送る:Swift 案件に参加させられる日に備えて~似てるけど色々違う Swift の仕様 / from Kotlin to Swift
lovee
1
260
CursorはMCPを使った方が良いぞ
taigakono
1
240
童醫院敏捷轉型的實踐經驗
cclai999
0
210
Google Agent Development Kit でLINE Botを作ってみた
ymd65536
2
220
Is Xcode slowly dying out in 2025?
uetyo
1
260
関数型まつりレポート for JuliaTokai #22
antimon2
0
160
Featured
See All Featured
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.3k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.8k
Building Flexible Design Systems
yeseniaperezcruz
328
39k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
GraphQLとの向き合い方2022年版
quramy
49
14k
Designing for Performance
lara
610
69k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
48
5.4k
Facilitating Awesome Meetings
lara
54
6.4k
Agile that works and the tools we love
rasmusluckow
329
21k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
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