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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Tomoki Ota
August 29, 2024
Programming
88
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
130
【Go言語】テスト
tomo1227
0
100
【Go言語】クロージャ
tomo1227
0
350
【Go言語】イテレータ
tomo1227
0
130
【Go言語】エラーハンドリング
tomo1227
0
100
AIに淘汰されないようにするには?
tomo1227
0
110
【Go言語】range
tomo1227
0
110
【Go言語】break
tomo1227
0
110
Other Decks in Programming
See All in Programming
一人だけ、Kiroが静止する日
hideg
0
130
SREの越境 / SRE Collaboration
y0hgi
2
280
スマート反転とウェブアクセシビリティ
camiha
0
210
仕様駆動開発による爆速プロダクト開発 / Bakusoku Spec Driven Development
kobakei
0
140
AGENTS.md Is Not Enough:Build Skills, Don't Download Them
lx_t
0
130
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
420
MCP Appsでつくるチャット駆動な地図アプリ
nakamori1024
0
110
thread_parallel_with_free-threaded_Python_and_NumPy.pdf
riku_sakamoto
0
360
マイコン向けの軽量Ruby「PicoRuby」で各種デバイスを制御するネイティブアプリの実現手法
bash0c7
0
450
モジュールの視点からSwiftを読み解く #iosdc
s_shimotori
0
200
すこし踏み込む CancellationToken
htkym
2
1.3k
手動確認はもう限界 〜XCUITestでCustom URL Schemeの遷移を起動種別ごとに自動テストする〜 / Testing Custom URL Schemes with XCUITest
otouto
0
350
Featured
See All Featured
Building Applications with DynamoDB
mza
96
7.2k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
440
Optimising Largest Contentful Paint
csswizardry
37
4k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
530
Docker and Python
trallard
47
4.2k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
250
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
410
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
610
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
Unsuck your backbone
ammeep
672
58k
The World Runs on Bad Software
bkeepers
PRO
72
12k
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Λѻ͏ࡍɺҎԼͷͷʹґଘ͍͚ͯ͠ͳ͍ɻ ΩʔͰॱং͚͞Εͨσʔλ ૠೖॱংͷอ࣋ ܾఆతͳ෮ॱং ෮ॲཧதʹՃ͞Εͨཁૉͷੜ