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
85
0
Share
【Go言語】break
breakについて解説します
Tomoki Ota
August 30, 2024
More Decks by Tomoki Ota
See All by Tomoki Ota
アーキテクチャの価値
tomo1227
0
120
アーキテクチャとビジネスロジック
tomo1227
0
120
【Go言語】テスト
tomo1227
0
82
【Go言語】クロージャ
tomo1227
0
310
【Go言語】イテレータ
tomo1227
0
100
【Go言語】エラーハンドリング
tomo1227
0
85
AIに淘汰されないようにするには?
tomo1227
0
84
【Go言語】range
tomo1227
0
94
【Go言語】反復処理
tomo1227
0
62
Other Decks in Programming
See All in Programming
Radical Imagining - LIFT 2025-2027 Policy Agenda
lift1998
0
250
「効かない!」依存性注入(DI)を活用したAPI Platformのエラーハンドリング奮闘記
mkmk884
0
320
セグメントとターゲットを意識するプロポーザルの書き方 〜採択の鍵は、誰に刺すかを見極めるマーケティング戦略にある〜
m3m0r7
PRO
0
460
夢の無限スパゲッティ製造機 -実装篇- #phpstudy
o0h
PRO
0
200
Java 21/25 Virtual Threads 소개
debop
0
340
UIの境界線をデザインする | React Tokyo #15 メイントーク
sasagar
1
180
Nuxt Server Components
wattanx
0
260
実践ハーネスエンジニアリング #MOSHTech
kajitack
7
6.2k
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
120
SkillがSkillを生む:QA観点出しを自動化した
sontixyou
6
3.2k
おれのAgentic Coding 2026/03
tsukasagr
1
140
瑠璃の宝石に学ぶ技術の声の聴き方 / 【劇場版】アニメから得た学びを発表会2026 #エンジニアニメ
mazrean
0
230
Featured
See All Featured
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.5k
Utilizing Notion as your number one productivity tool
mfonobong
4
290
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
120
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
310
Optimizing for Happiness
mojombo
378
71k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.6k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
How to train your dragon (web standard)
notwaldorf
97
6.6k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
790
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
64
53k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Exploring anti-patterns in Rails
aemeredith
3
310
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