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
70
アーキテクチャとビジネスロジック
tomo1227
0
75
【Go言語】テスト
tomo1227
0
42
【Go言語】クロージャ
tomo1227
0
230
【Go言語】イテレータ
tomo1227
0
54
【Go言語】エラーハンドリング
tomo1227
0
50
AIに淘汰されないようにするには?
tomo1227
0
45
【Go言語】range
tomo1227
0
45
【Go言語】反復処理
tomo1227
0
29
Other Decks in Programming
See All in Programming
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
400
Quand Symfony, ApiPlatform, OpenAI et LangChain s'allient pour exploiter vos PDF : de la théorie à la production…
ahmedbhs123
0
130
AIプログラマーDevinは PHPerの夢を見るか?
shinyasaita
1
190
ニーリーにおけるプロダクトエンジニア
nealle
0
740
Webの外へ飛び出せ NativePHPが切り拓くPHPの未来
takuyakatsusa
2
480
20250704_教育事業におけるアジャイルなデータ基盤構築
hanon52_
5
470
エラーって何種類あるの?
kajitack
5
340
エンジニア向け採用ピッチ資料
inusan
0
180
今ならAmazon ECSのサービス間通信をどう選ぶか / Selection of ECS Interservice Communication 2025
tkikuc
21
3.8k
PHP 8.4の新機能「プロパティフック」から学ぶオブジェクト指向設計とリスコフの置換原則
kentaroutakeda
2
730
「Cursor/Devin全社導入の理想と現実」のその後
saitoryc
0
700
スタートアップの急成長を支えるプラットフォームエンジニアリングと組織戦略
sutochin26
0
780
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.8k
What's in a price? How to price your products and services
michaelherold
246
12k
The Power of CSS Pseudo Elements
geoffreycrofte
77
5.8k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
24k
Fireside Chat
paigeccino
37
3.5k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
138
34k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
281
13k
YesSQL, Process and Tooling at Scale
rocio
173
14k
Git: the NoSQL Database
bkeepers
PRO
430
65k
Into the Great Unknown - MozCon
thekraken
39
1.9k
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