Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
嫁に怒られずにGoを書く技術
teitei_tk
March 01, 2017
Programming
0
2.2k
嫁に怒られずにGoを書く技術
teitei_tk
March 01, 2017
Tweet
Share
More Decks by teitei_tk
See All by teitei_tk
dive to Ruby on Rails module autoloading
teitei
1
3.3k
貴方はOmniAuth::AuthHashを知っていますか?
teitei
0
7k
myhome-progress
teitei
0
67
recommend parallel career
teitei
0
720
impression of google chrome headless
teitei
0
1.6k
AWS parking lot shutter hack project
teitei
2
3.3k
Other Decks in Programming
See All in Programming
Atomic Design とテストの○○な話
takfjp
2
800
話題の AlloyDB は本当に凄いデータベースなのでプレビューを使い倒した #devio2022
maroon1st
0
13k
Pythonで鉄道指向プログラミング
usabarashi
0
130
2022年のモダンCSS改
tonkotsuboy_com
24
16k
Rust on Lambda 大きめCSV生成
atsuyokota
1
390
Carp言語さわってみた 〜鯉を取り戻せ編〜
tsin45
0
100
ゴーファーくんと辿るプログラミング言語の歴史/history-of-programming-languages-with-gopher
iwasiman
11
5k
クラウド KMS の活用 / TOKYO BLOCKCHAIN TECH MEETUP 2022
odanado
PRO
0
190
MLOps勉強会_20220810
strsaito
0
260
YATA: collaborative documents and how to make them fast
horusiath
1
160
10歳の minne から、これから長く続くプロダクトを作るすべての人へ
tsumichan
9
3.6k
パラメタライズドテスト
ledsun
0
220
Featured
See All Featured
Building Applications with DynamoDB
mza
84
4.8k
Fontdeck: Realign not Redesign
paulrobertlloyd
73
4.1k
Side Projects
sachag
450
37k
What's new in Ruby 2.0
geeforr
335
30k
Fantastic passwords and where to find them - at NoRuKo
philnash
27
1.6k
Pencils Down: Stop Designing & Start Developing
hursman
113
9.8k
Keith and Marios Guide to Fast Websites
keithpitt
404
21k
How To Stay Up To Date on Web Technology
chriscoyier
780
250k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
100
5.9k
No one is an island. Learnings from fostering a developers community.
thoeni
9
1.3k
Web Components: a chance to create the future
zenorocha
303
40k
Visualization
eitanlees
125
12k
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Ͱग़དྷΔ͜ͱҰ௨Γ ग़དྷΔ • Շۦಈ։ൃྨۦಈ։ൃͳͲʹ͓͢͢ΊͰ͢