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
teitei_tk
March 01, 2017
Programming
2.6k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
嫁に怒られずにGoを書く技術
teitei_tk
March 01, 2017
More Decks by teitei_tk
See All by teitei_tk
Claude Code × WebLLM:AI駆動開発で作る次世代PDF要約ツール
teitei
0
170
dive to Ruby on Rails module autoloading
teitei
1
5k
貴方はOmniAuth::AuthHashを知っていますか?
teitei
0
10k
myhome-progress
teitei
0
99
recommend parallel career
teitei
0
1.2k
impression of google chrome headless
teitei
0
1.9k
AWS parking lot shutter hack project
teitei
2
4.3k
Other Decks in Programming
See All in Programming
Japan Community Day at Kubecon + CloudNativeCon Japan 2026: Learning Container Privilege Control by Building My Own Low-Level Container Runtime
ternbusty
1
150
Built Our Own Background Agent at LayerX
layerx
PRO
9
5.2k
【やさしく解説 設計編・中級 #6】良いアーキテクチャとは ~ 一本の登り道の、行き先 ~
panda728
PRO
0
210
【SRE NEXT 2026 Lunch Session】一人目専任SREの立ち上げを加速する ― AIと進めたオンボーディングで2分を0.04秒にした話
pkshadeck
PRO
0
3.6k
人間の目はかわらない、だからJPEGは30年もつ
yuzneri
12
18k
jsmini JavaScript Engine を作ってみた話
yosuke_furukawa
PRO
0
300
テーブルをDELETEした
yuzneri
0
140
Apache Hive: そしてCloud Native Lakehouseへ
okumin
1
220
Laravelで学ぶ Webアプリケーションチューニング入門/web_application_tuning_101
hanhan1978
4
1.7k
琵琶湖の水は止められてもNet--HTTPのリトライは止められない / You might be able to stop the water flow of Lake Biwa but you can't stop Net::HTTP retries
luccafort
PRO
0
640
【やさしく解説 設計編・中級 #1】一つの車に、運転手は一人 ~ある倉庫システムの事例から~
panda728
PRO
0
210
ドリフトを絶対に許さない(?)CDK運用 / CDK Ops with Zero Tolerance for Drifts (?)
akihisaikeda
1
180
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
Docker and Python
trallard
47
4.1k
4 Signs Your Business is Dying
shpigford
187
22k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
25k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
210
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.3k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
Fireside Chat
paigeccino
42
4k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
460
The Language of Interfaces
destraynor
162
27k
How GitHub (no longer) Works
holman
316
150k
Transcript
ՇʹౖΒΕͣʹ GoΛॻٕ͘ज़ @teitei_tk
ࣗݾհ • @teitei_tk • freee k.k • Go/PHP/Ruby/Python • Goझຯ
ࠓΔ͜ͱ
GoͰνϟοτBOT on LINE
࣮Ұ࡞ͬͨ
LINEBOT SDK GOΛͬͯ ݄༵ͷͨΘΘBOTΛ࡞ͬͨɻ http://qiita.com/teitei_tk/items/c313a02e78e3045fdf5f
͏গ͠ ࣮༻తͳΛ࡞Δ
ͷલʹͳͥLINE Bot͔ • ݱࡏຊͰҰ൪Α͘ΘΕ͍ͯΔͰ͋Ζ͏νϟοτ αʔϏε • Շۦಈ։ൃՈۦಈ։ൃͳͲͷݴ͍༁ʹ͑Δ • ※͜Ε͚͕ͩݴ͍͍͕ͨҝʹൃද͍ͯ͠ΔΑ͏ͳͷ
ࠓͷ ఱؾΛ௨͢Δ
༻ҙ͢Δ • Go͕Πϯετʔϧ͞Ε͍ͯͯΠϯλʔωοτʹ ܨ͕Δαʔό1 • υϝΠϯ1ͭ • SSL/TLS ূ໌ॻ(Let’s encryptՄ)
αʔόߏஙɺ SSLͷઃఆলུ
ఱؾใͷऔಘ
API͕͋Δ • http://weather.livedoor.com/weather_hacks/ webservice • LINE͞Μʹײँ
ެࣜExampleʹ ΦϜฦ͕͋͠Δ https://github.com/line/line-bot-sdk-go/blob/master/ examples/echo_bot/server.go
͜ΕʹखΛՃ͑Δ
None
None
None
ޙBotΛՈͱͷLINE άϧʔϓʹೖΕΔ͚ͩ
࣮ࡍʹ खΛ͚Α͏ͱ͍ͯ͠Δͷ • ອըͷ৽ץग़ͨࡍͷ௨ • GoogleCalendarʹ͋Δ༧ఆͷ௨ • TODOϦετͷ௨
·ͱΊ • SlackHipchatͷBOTͰग़དྷΔ͜ͱҰ௨Γ ग़དྷΔ • Շۦಈ։ൃྨۦಈ։ൃͳͲʹ͓͢͢ΊͰ͢