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言語】反復処理
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Tomoki Ota
August 29, 2024
Programming
72
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
【Go言語】反復処理
反復処理について解説しています
Tomoki Ota
August 29, 2024
More Decks by Tomoki Ota
See All by Tomoki Ota
アーキテクチャの価値
tomo1227
0
120
アーキテクチャとビジネスロジック
tomo1227
0
120
【Go言語】テスト
tomo1227
0
88
【Go言語】クロージャ
tomo1227
0
320
【Go言語】イテレータ
tomo1227
0
110
【Go言語】エラーハンドリング
tomo1227
0
92
AIに淘汰されないようにするには?
tomo1227
0
92
【Go言語】range
tomo1227
0
100
【Go言語】break
tomo1227
0
93
Other Decks in Programming
See All in Programming
Copilot CLI の継戦能力を高める コンテキスト管理
nozomutu
1
1.2k
技術記事、AIに書かせるか、自分で書くか? 〜それでも私が自分の手で書く理由〜 / #QiitaConference
jnchito
2
1.4k
キャリア迷子上等 ─ "ない道"は自分で作ればいい
16bitidol
3
2k
The ROI of Quarkus for Spring Boot Applications
hollycummins
0
110
LLM本来の能力を解き放つサンドボックス技術とAI民主化への適用
yukukotani
3
3.6k
ユニットテストの先へ:テスト技法で要求・仕様を整理するJava開発実践 / Beyond_Unit_Testing_Practical_Java_Development_Techniques_for_Organizing_Requirements_and_Specifications
shimashima35
0
390
決定論的オーケストレーションの設計と実装 / Design and Implementation of Deterministic Orchestration
nrslib
3
1.3k
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
8
3.2k
TAKTでAI駆動開発の品質を設計する
j5ik2o
6
1.2k
Spec Driven Development | AI Summit Lisbon
danielsogl
PRO
0
180
[2026年度第1回ORセミナー] 計画最適化ベンチャーと競技プログラミング人材
terryu16
0
260
軽量Java基盤の設計 DIコンテナに頼らない、長期保守と1秒起動の実現 JJUG CCC 2026 Spring
macha64
0
490
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
96
14k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
360
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.5k
For a Future-Friendly Web
brad_frost
183
10k
Building AI with AI
inesmontani
PRO
1
1.1k
sira's awesome portfolio website redesign presentation
elsirapls
0
280
ラッコキーワード サービス紹介資料
rakko
1
3.6M
Optimising Largest Contentful Paint
csswizardry
37
3.7k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
120k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
160
New Earth Scene 8
popppiees
3
2.3k
The Invisible Side of Design
smashingmag
302
52k
Transcript
Tomoki Ota ʲGoݴޠʳ෮ॲཧ
෮ॲཧͷॱং ෮ॲཧதͷmapͷૠೖ ΞδΣϯμ 2
෮ॲཧͷॱং
෮ॲཧͷॱং 4 σʔλΛΩʔͰιʔτͯ͠อ͍࣋ͯ͠ΔΘ͚Ͱͳ͍(mapೋʹج͍͍ͮͯΔ) σʔλ͕Ճ͞Εͨͱ͖ͷॱংΛอ͍࣋ͯ͠ΔΘ͚Ͱͳ͍(1ͷAͷޙʹ1ͷBΛૠೖͯ͠ɺ ͜ͷૠೖॱʹجͮ͘ఆͰ࣮͍͚ͯ͠ͳ͍)
෮ॲཧͷॱং 5
෮ॲཧͷॱং 6 acdeyz ? ayzcde ? aczdey ?
෮ॲཧͷഎܠ 7 ෮ॲཧͷҰ༷Ͱͳ͍ͷͰɺެࣜͰϥϯμϜͰͳ͘ ఆΊΒΕ͍ͯͳ͍ͱ͞Ε͍ͯΔɻ
෮ॲཧͷഎܠ 8 Goͷઃܭऀ ։ൃऀ͕mapΛѻ͏ͱ͖ʹ ॱংͷաఔʹґଘ͠ͳ͍Α͏ʹ ͋ΔछͷϥϯμϜੑΛՃͨ͠ɻ
։ൃऀɺmapΛ෮ॲཧ͢Δͱ͖ ʹॱংΛԾఆ͍͚ͯ͠ͳ͍ɻ
෮ॲཧͷഎܠ 10 ඪ४ϥΠϒϥϦ֎෦ϥΠϒϥϦͷύοέʔδͰɺॱং͕อͨ ΕΔ߹͋Δɻencoding/json͕mapΛJSONʹϚʔγϟϧ͢ Δͱ͖ɺૠೖॱংʹؔͳ͘ɺσʔλΛΩʔͰΞϧϑΝϕοτॱ ʹฒͼସ͑Δɻ
෮ॲཧͷഎܠ 11 ඪ४ϥΠϒϥϦ֎෦ϥΠϒϥϦͷύοέʔδͰɺॱং͕อͨ ΕΔ߹͋Δɻencoding/json͕mapΛJSONʹϚʔγϟϧ͢ Δͱ͖ɺૠೖॱংʹؔͳ͘ɺσʔλΛΩʔͰΞϧϑΝϕοτॱ ʹฒͼସ͑Δɻ ͜ΕGoͷಛੑͰͳ͍ʂ
ॱং͚͕ඞཁͳ߹ 12 όΠφϦώʔϓͳͲଞͷσʔλߏΛ༻͢Δ (GoDSϥΠϒϥϦͳͲ)
෮ॲཧதͷmapͷૠೖ
෮ॲཧதͷmapͷૠೖ 14
15 mapͷΤϯτϦ͕෮ॲཧதʹ࡞͞ΕΔ߹ɺ෮ॲཧதʹऔ Γग़͞ΕΔ͔͠Ε·ͤΜ͠ɺεΩοϓ͞ΕΔ͔͠Ε·ͤΜɻ ͲͪΒʹͳΔͷ͔ɺ࡞͞Ε֤ͨΤϯτϦ͝ͱʹҟͳͬͨΓɺ ෮ॲཧͷ࣮ߦ͝ͱʹҟͳͬͨΓ͠·͢ɻ Ώ͑ʹɺ͋Δ෮ॲཧதʹཁૉ͕Ճ͞Εͨ߹ɺ࣍ͷ෮Ͱͦ ͷཁૉ͕औΓग़͞ΕͨΓ͢Δ͔͠Εͳ͍͠ɺऔΓग़͞Εͳ͍͔ ͠Εͳ͍ɻ ෮ॲཧதͷmapͷૠೖ
16 ෮ॲཧதʹmapΛߋ৽͠ɺ Ճ͞ΕͨΤϯτϦ͕෮ॲ ཧͰऔΓग़͞Εͳ͍͜ͱΛอ ূ͍ͨ͠߹Ϛοϓͷί ϐʔΛ࡞ͯ͠ɺͦͷίϐʔΛ ߋ৽͢Δɻ ෮ॲཧதͷmapͷૠೖ
·ͱΊ 17 mapΛѻ͏ࡍɺҎԼͷͷʹґଘ͍͚ͯ͠ͳ͍ɻ ΩʔͰॱং͚͞Εͨσʔλ ૠೖॱংͷอ࣋ ܾఆతͳ෮ॱং ෮ॲཧதʹՃ͞Εͨཁૉͷੜ