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
79
【Go言語】break
breakについて解説します
Tomoki Ota
August 30, 2024
Tweet
Share
More Decks by Tomoki Ota
See All by Tomoki Ota
アーキテクチャの価値
tomo1227
0
120
アーキテクチャとビジネスロジック
tomo1227
0
110
【Go言語】テスト
tomo1227
0
78
【Go言語】クロージャ
tomo1227
0
300
【Go言語】イテレータ
tomo1227
0
98
【Go言語】エラーハンドリング
tomo1227
0
81
AIに淘汰されないようにするには?
tomo1227
0
78
【Go言語】range
tomo1227
0
87
【Go言語】反復処理
tomo1227
0
57
Other Decks in Programming
See All in Programming
JPUG勉強会 OSSデータベースの内部構造を理解しよう
oga5
2
220
AI活用のコスパを最大化する方法
ochtum
0
120
CSC307 Lecture 10
javiergs
PRO
1
690
Oxlint JS plugins
kazupon
1
1.2k
Event Storming
hschwentner
3
1.3k
今更考える「単一責任原則」 / Thinking about the Single Responsibility Principle
tooppoo
3
1.3k
atmaCup #23でAIコーディングを活用した話
ml_bear
4
720
ぼくの開発環境2026
yuzneri
1
300
AI巻き込み型コードレビューのススメ
nealle
2
2.5k
AIコーディングの理想と現実 2026 | AI Coding: Expectations vs. Reality 2026
tomohisa
0
920
クライアントワークでSREをするということ。あるいは事業会社におけるSREと同じこと・違うこと
nnaka2992
1
290
nilとは何か 〜interfaceの構造とnil!=nilから理解する〜
kuro_kurorrr
3
1.6k
Featured
See All Featured
Technical Leadership for Architectural Decision Making
baasie
3
270
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
370
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
270
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
770
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.1k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
130
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
59
50k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
62
50k
GitHub's CSS Performance
jonrohan
1032
470k
Exploring anti-patterns in Rails
aemeredith
2
280
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