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
42
【Go言語】break
breakについて解説します
Tomoki Ota
August 30, 2024
Tweet
Share
More Decks by Tomoki Ota
See All by Tomoki Ota
アーキテクチャの価値
tomo1227
0
58
アーキテクチャとビジネスロジック
tomo1227
0
66
【Go言語】テスト
tomo1227
0
37
【Go言語】クロージャ
tomo1227
0
220
【Go言語】イテレータ
tomo1227
0
44
【Go言語】エラーハンドリング
tomo1227
0
44
AIに淘汰されないようにするには?
tomo1227
0
39
【Go言語】range
tomo1227
0
36
【Go言語】反復処理
tomo1227
0
26
Other Decks in Programming
See All in Programming
CursorとDevinが仲間!?AI駆動で新規プロダクト開発に挑んだ3ヶ月を振り返る / A Story of New Product Development with Cursor and Devin
rkaga
5
1.9k
衛星の軌道をWeb地図上に表示する
sankichi92
0
240
CRUD から CQRS へ ~ 分離が可能にする柔軟性
tkawae
0
220
Efficiency and Rock 'n’ Roll (Really!)
hollycummins
0
580
❄️ tmux-nixの実装を通して学ぶNixOSモジュール
momeemt
1
120
MLOps Japan 勉強会 #52 - 特徴量を言語を越えて一貫して管理する, 『特徴量ドリブン』な MLOps の実現への試み
taniiicom
2
360
ワンバイナリWebサービスのススメ
mackee
10
7k
ts-morph実践:型を利用するcodemodのテクニック
ypresto
1
510
コンポーネントライブラリで実現する、アクセシビリティの正しい実装パターン
schktjm
1
620
生成AI時代のフルスタック開発
kenn
9
2.1k
『Python → TypeScript』オンボーディング奮闘記
takumi_tatsuno
1
120
2025年のz-index設計を考える
tak_dcxi
13
5.2k
Featured
See All Featured
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
42
2.3k
Measuring & Analyzing Core Web Vitals
bluesmoon
7
460
The MySQL Ecosystem @ GitHub 2015
samlambert
251
12k
Embracing the Ebb and Flow
colly
85
4.7k
Automating Front-end Workflow
addyosmani
1370
200k
Music & Morning Musume
bryan
47
6.5k
Building a Modern Day E-commerce SEO Strategy
aleyda
40
7.3k
Statistics for Hackers
jakevdp
799
220k
It's Worth the Effort
3n
184
28k
Navigating Team Friction
lara
185
15k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
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