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
業務で使えるGolang
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
katryo
November 03, 2014
Technology
1.8k
3
Share
業務で使える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
4k
Other Decks in Technology
See All in Technology
脅威をエンジニアリングの糧にして:恐怖を乗り越えた先にあったもの / Turn threats into fuel for engineering: what lay beyond overcoming fear
nrslib
1
360
A Harness for Behaviour: how to get AI to generate code that does what we intend, or "TDD in the age of AI"
xpmatteo
1
520
Javaで学ぶSOLID原則
negima
1
240
地元にいないローカルオーガナイザーの立ち回り
uvb_76
1
400
OpenID Connectによるサービス間連携
takesection
0
150
string地獄を脱出する
sansantech
PRO
1
110
Java正規表現エンジン(NFA)の仕組みと パフォーマンスを維持するための最適化手法
takeuchi_132917
0
160
美味しいスイスチーズを作ろう🧀🐭
taigamikami
1
190
Oracle AI Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
4
2.7k
AIが変えた"品質の守り方"
kkakizaki
13
5.5k
Databricks 月刊サービスアップデート 2026年05月号
tyosi1212
0
120
NFLコンペ2026 解法
lycorptech_jp
PRO
0
130
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
590
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
190
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.3k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.8k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
It's Worth the Effort
3n
188
29k
SEO for Brand Visibility & Recognition
aleyda
0
4.6k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
1.1k
Building the Perfect Custom Keyboard
takai
2
780
The untapped power of vector embeddings
frankvandijk
2
1.7k
Bash Introduction
62gerente
615
210k
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ʹ͍ͭͯॻ ͍ͯ͋Δ