$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
【Go言語】break
Search
Tomoki Ota
August 30, 2024
Programming
0
65
【Go言語】break
breakについて解説します
Tomoki Ota
August 30, 2024
Tweet
Share
More Decks by Tomoki Ota
See All by Tomoki Ota
アーキテクチャの価値
tomo1227
0
98
アーキテクチャとビジネスロジック
tomo1227
0
99
【Go言語】テスト
tomo1227
0
59
【Go言語】クロージャ
tomo1227
0
280
【Go言語】イテレータ
tomo1227
0
74
【Go言語】エラーハンドリング
tomo1227
0
64
AIに淘汰されないようにするには?
tomo1227
0
65
【Go言語】range
tomo1227
0
69
【Go言語】反復処理
tomo1227
0
41
Other Decks in Programming
See All in Programming
FluorTracer / RayTracingCamp11
kugimasa
0
190
WebRTC と Rust と8K 60fps
tnoho
2
1.9k
CSC305 Lecture 17
javiergs
PRO
0
270
Integrating WordPress and Symfony
alexandresalome
0
120
AIエンジニアリングのご紹介 / Introduction to AI Engineering
rkaga
2
1.1k
AIコーディングエージェント(NotebookLM)
kondai24
0
130
Microservices rules: What good looks like
cer
PRO
0
560
dotfiles 式年遷宮 令和最新版
masawada
1
680
関数の挙動書き換える
takatofukui
4
770
無秩序からの脱却 / Emergence from chaos
nrslib
2
12k
How Software Deployment tools have changed in the past 20 years
geshan
0
28k
TypeScriptで設計する 堅牢さとUXを両立した非同期ワークフローの実現
moeka__c
6
2.9k
Featured
See All Featured
Raft: Consensus for Rubyists
vanstee
140
7.2k
Building Adaptive Systems
keathley
44
2.9k
How GitHub (no longer) Works
holman
316
140k
Bash Introduction
62gerente
615
210k
Navigating Team Friction
lara
191
16k
Unsuck your backbone
ammeep
671
58k
Java REST API Framework Comparison - PWX 2021
mraible
34
9k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
36
6.2k
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
Automating Front-end Workflow
addyosmani
1371
200k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.1k
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