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
業務で使えるGolang
Search
katryo
November 03, 2014
Technology
1.8k
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
業務で使えるGolang
ヒカルのgo #3
http://connpass.com/event/9175/
で話した内容です
https://github.com/katryo/go_fanfare
katryo
November 03, 2014
More Decks by katryo
See All by katryo
How to create an automated test suite for the Chromium based app and the Unity app
katryo
0
6.8k
Denkinovelをどうして作り続けているのか
katryo
0
2.4k
Sprockets絶ちに挑戦した
katryo
4
1.9k
Rails3で作り始めたアプリケーションをちょっとずつ改善してゆく道のり
katryo
3
2k
Railsアプリの運営とQOL爆アゲアイテム
katryo
0
410
Golang完全初心者がチュートリアルを完了させればなにができるようになるか
katryo
2
4.1k
Other Decks in Technology
See All in Technology
AI 時代の Azure エンジニアリング ~ 私たちは何を磨き、何を任せるのか ~
chack411
1
450
営業オントロジーの作り方と、エージェントからの辿り方 ── ナレッジワークの現場から
kworkdev
PRO
1
260
AgentCoreで実践するハーネスエンジニアリング
yakumo
1
280
自律型 AI をセキュアに実装!Gemini と MIG で作る動的コード実行環境
recruitengineers
PRO
1
210
Execution in the Kingdom of Agents: Reflections on Abstraction and Complexity
bcantrill
0
840
AI Made Us Faster at Solving the Wrong Problems
marceloancelmo
0
160
Kernel testing frameworks
ennael
PRO
0
110
Incremental HTTP
kazuho
5
2k
ビジネスを止めない技術的負債の返済のための戦略とその手法 - 技術的負債と向き合う / Complexity and Simplicity
soudai
PRO
3
550
個別開発で終わらせない。 現場の課題をプロダクトの強さに変える StockmarkのFDE
ktkrhr
0
590
サーバーフルコンピューティング?AWS Lambda
iwatatomoya
1
240
Snapshot Testing in Practice: Predictable and Reliable SwiftUI Views
fespinoza
0
120
Featured
See All Featured
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
Visualization
eitanlees
153
17k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
540
The untapped power of vector embeddings
frankvandijk
2
1.9k
Fireside Chat
paigeccino
43
4k
Utilizing Notion as your number one productivity tool
mfonobong
4
610
For a Future-Friendly Web
brad_frost
183
10k
Building Applications with DynamoDB
mza
96
7.2k
Between Models and Reality
mayunak
4
480
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Testing 201, or: Great Expectations
jmmastey
46
8.3k
Transcript
ۀͰ͑ΔGolang katryo
࣍ 1. GolangڭͷͨΊͷIDEಋೖ 2. ۀͰ͑ΔCLIΞϓϦΛGolangͰ࡞ͬͨ
1.GolangڭͷͨΊͷ IDEಋೖ
GolangΛࣾͰΊΔʹ?
։ൃڥͷ࡞ΓํΛ ڭ͓͑͋͏
Golang։ൃڥ • GoΛΠϯετʔϧ • GopathΛઃఆ • ͨΊ͠ʹgo runͰHello worldͯ͠ΈΔ
IDE • ੩తܕ͚ݴޠͰ͋Δ͜ͱͷརΛੜ͔͢ • ΠϯετʔϧͷޙɺGOPATHΛઃఆ • ϝχϡʔόʔͷදࣔ(View)͔Β”Manage GOPATH…”Λબ
GOPATHઃఆ • Manage GOPATHͰɺࣗͷઃఆͨ͠GOPATH Λॻ͘
ΧϥʔεΩʔϚ • ݸਓతʹSublime text෩ͷΧϥʔεΩʔϚ͕͖
2.ۀͰ͑ΔCLIΞϓϦΛ GolangͰ࡞ͬͨ
Golangͷ్͍ • CLI • γΣϧεΫϦϓτͷ͔ΘΓ • ……ͦΕ͚ͩʁ
ͳΜͱ͔ͯ͠GoΛ ۀͰ͍͍ͨ
ࢥ͍͍ͭͨ
ςετ࣮ߦͷͪ࣌ؒ • ςετΛ࣮ߦ͢Δͱɺेඵʙͷͪ࣌ ͕ؒൃੜ͢Δ • ୀ۶ • GoͷྗͰͪ࣌ؒΛָ͘͢͠Δ • ԻָΛྲָྀͤ͘͠ͳΔͷͰͳ͍͔ʁ
γΣϧεΫϦϓτΛ ࢧԉ͢ΔϓϩμΫτΛ GoͰ࡞Ζ͏
ఆ͢ΔγνϡΤʔγϣϯ • ./heavy_task ɺॏ͍ॲཧΛ࣮ߦ͢ΔγΣϧ εΫϦϓτ • ςετɺը૾ॲཧɺetc • ./heavy_taskΛ࣮ߦ͢Δؒʹۓഭͨ͠ԻָΛ ྲྀ͠ɺྃͨ͠ΒϑΝϯϑΝʔϨΛྲྀ͍ͨ͠
ͬͨϥΠϒϥϦ • portaudio-go • portaudioͷgoόΠϯσΟϯά • Իָ࠶ੜͷίʔυαϯϓϧΛ΄΅ͦͷ·· ͬͨ • αϯϓϧͷίʔυaiffΛ࠶ੜ͢Δͷͩͬͨͷ
ͰɺaiffͷԻָϑΝΠϧΛ͏͜ͱʹͨ͠
ͳͥԻָͱGoͳͷ͔ • Goฒߦॲཧ͕ಘҙ • ChannelΛ͑ɺൺֱత؆୯ʹฒߦॲཧ͕ ॻ͚Δ • ʮԿ͔ͷλεΫΛ࣮ߦ͠ͳ͕Βɺಉ࣌ʹԻָ Λ࠶ੜ͠ɺλεΫ͕ऴྃͨ͠ΒɺԻָΛΓ ସ͑Δʯͷɺͪΐͬͱ໘ͳฒߦॲཧ
νϟϯωϧ • ผͷGoroutineؒͰϝοηʔδΛΓͱΓͰ͖Δ • λεΫ։࢝ɾλεΫྃͳͲΛɺνϟϯωϧΛͬͯ௨ͨ͠
WEB+DB vol.82 • Golangͷॳ৺ऀ͚ྑ هࣄ • jxck͞Μ͕ࣥච • Goroutineʹ͍ͭͯॻ ͍ͯ͋Δ