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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Tomoki Ota
August 30, 2024
Programming
87
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
84
【Go言語】クロージャ
tomo1227
0
320
【Go言語】イテレータ
tomo1227
0
110
【Go言語】エラーハンドリング
tomo1227
0
88
AIに淘汰されないようにするには?
tomo1227
0
86
【Go言語】range
tomo1227
0
97
【Go言語】反復処理
tomo1227
0
64
Other Decks in Programming
See All in Programming
第3木曜LT会 #28
tinykitten
PRO
0
120
Liberating Ruby's Parser from Lexer Hacks
ydah
2
2.4k
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
200
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
310
AIを導入する前にやるべきこと
negima
2
310
〜バイブコーディングを超えて〜 チームで実験し続けたAI駆動開発
tigertora7571
0
180
t *testing.T は どこからやってくるの?
otakakot
1
860
SREに優しいTerraform構成 modulesとstateの組み方
hiyanger
2
160
PicoRuby for IoT: Connecting to the Cloud with MQTT
yuuu
2
710
リセットCSSを1行消したらアクセシビリティが向上した話
pvcresin
2
360
「話せることがない」を乗り越える 〜日常業務から登壇テーマをつくる思考法〜
shoheimitani
4
920
Running Swift without an OS
kishikawakatsumi
0
870
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.5k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
900
The Spectacular Lies of Maps
axbom
PRO
1
720
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.7k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
350
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
270
Navigating Team Friction
lara
192
16k
WENDY [Excerpt]
tessaabrams
10
37k
Amusing Abliteration
ianozsvald
1
160
Exploring anti-patterns in Rails
aemeredith
3
340
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
65
55k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.5k
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