Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
【Go言語】反復処理
Search
Tomoki Ota
August 29, 2024
Programming
90
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
130
アーキテクチャとビジネスロジック
tomo1227
0
140
【Go言語】テスト
tomo1227
0
100
【Go言語】クロージャ
tomo1227
0
360
【Go言語】イテレータ
tomo1227
0
130
【Go言語】エラーハンドリング
tomo1227
0
110
AIに淘汰されないようにするには?
tomo1227
0
110
【Go言語】range
tomo1227
0
110
【Go言語】break
tomo1227
0
120
Other Decks in Programming
See All in Programming
技術的負債を組織課題として解く-増えすぎたマイクロサービスとの戦い-
reimaru
1
3k
JRuby: Past, Present, and Future
headius
0
230
AWSに止められる覚悟してますか?
morizo_1984
2
520
カツオ、ご期待ください
suneo3476
0
160
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.8k
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
140
Domain-Driven Transformation
hschwentner
2
2.3k
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
250
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
130
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
400
【加筆修正版】Laravel のアプリケーションをどこにデプロイするか #phpcon_ehime
akase244
0
150
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
490
Featured
See All Featured
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
360
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Test your architecture with Archunit
thirion
2
2.4k
Mind Mapping
helmedeiros
1
400
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Six Lessons from altMBA
skipperchong
29
4.5k
Optimising Largest Contentful Paint
csswizardry
37
4k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
580
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
The Curse of the Amulet
leimatthew05
3
15k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
WCS-LA-2024
lcolladotor
0
870
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Λѻ͏ࡍɺҎԼͷͷʹґଘ͍͚ͯ͠ͳ͍ɻ ΩʔͰॱং͚͞Εͨσʔλ ૠೖॱংͷอ࣋ ܾఆతͳ෮ॱং ෮ॲཧதʹՃ͞Εͨཁૉͷੜ