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
37
【Go言語】break
breakについて解説します
Tomoki Ota
August 30, 2024
Tweet
Share
More Decks by Tomoki Ota
See All by Tomoki Ota
アーキテクチャの価値
tomo1227
0
48
アーキテクチャとビジネスロジック
tomo1227
0
51
【Go言語】テスト
tomo1227
0
29
【Go言語】クロージャ
tomo1227
0
210
【Go言語】イテレータ
tomo1227
0
35
【Go言語】エラーハンドリング
tomo1227
0
37
AIに淘汰されないようにするには?
tomo1227
0
33
【Go言語】range
tomo1227
0
26
【Go言語】反復処理
tomo1227
0
22
Other Decks in Programming
See All in Programming
requirements with math
moony
0
470
SREチームのタスク優先度と向き合う Road to SRE NEXT@札幌
nealle
0
140
신입 안드로이드 개발자의 AI 스타트업 생존기 (+ Native C++ Code를 Android에서 사용해보기)
dygames
0
450
安全に倒し切るリリースをするために:15年来レガシーシステムのフルリプレイス挑戦記
sakuraikotone
5
1.6k
コードジェネレーターで 効率的な開発をする / Efficient development with code generators
linyows
0
170
Generative AI for Beginners .NETの紹介
tomokusaba
1
260
AtCoder Heuristic First-step Vol.1 講義スライド
terryu16
2
630
Introduction to C Extensions
sylph01
3
150
아직도 SOLID 를 '글'로만 알고 계신가요?
sh1mj1
0
330
WordPress Playground for Developers
iambherulal
0
110
AHC 044 混合整数計画ソルバー解法
kiri8128
0
160
令和トラベルにおけるコンテンツ生成AIアプリケーション開発の実践
ippo012
1
230
Featured
See All Featured
Writing Fast Ruby
sferik
628
61k
RailsConf 2023
tenderlove
29
1k
Product Roadmaps are Hard
iamctodd
PRO
51
11k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
Making the Leap to Tech Lead
cromwellryan
133
9.1k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
12k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
30
2.3k
The Language of Interfaces
destraynor
156
24k
Scaling GitHub
holman
459
140k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
45
9.5k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
4
430
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
4
480
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