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.4k
貴方はOmniAuth::AuthHashを知っていますか?
teitei
0
7.1k
myhome-progress
teitei
0
71
recommend parallel career
teitei
0
770
impression of google chrome headless
teitei
0
1.6k
AWS parking lot shutter hack project
teitei
2
3.4k
Other Decks in Programming
See All in Programming
Writing Greener Java Applications
hollycummins
0
330
Swift Expression Macros: a practical introduction
kishikawakatsumi
2
700
ITエンジニア特化型Q&Aサイトteratailを 言語、DB、クラウドなど フルリプレイスした話
leveragestech
0
380
フロントエンドで 良いコードを書くために
t_keshi
3
1.6k
tidy_rpart
bk_18
0
540
23年のJavaトレンドは?Quarkusで理解するコンテナネイティブJava
tatsuya1bm
1
120
なぜRubyコミュニティにコミットするのか?
luccafort
0
300
新卒2年目がデータ分析API開発に挑戦【Stapy#88】/data-science-api-begginer
matsuik
0
330
eBPF와 함께 이해하는 Cilium 네트워킹
hadaney
3
830
スタック・オーバーフローに コントリビュートしはじめて良かったこと🐣
takuyakikuchi
1
120
Remix + Cloudflare Pages + D1 で ポケモン SV のレンタルチームを検索できるアプリを作ってみた
kuroppe1819
4
1.3k
Cloudflare WorkersでGoを動かすライブラリを作っている話
syumai
1
300
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
263
38k
How STYLIGHT went responsive
nonsquared
89
4.2k
Adopting Sorbet at Scale
ufuk
65
7.8k
Unsuck your backbone
ammeep
659
56k
StorybookのUI Testing Handbookを読んだ
zakiyama
8
3.2k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
351
21k
Fireside Chat
paigeccino
16
1.8k
Fashionably flexible responsive web design (full day workshop)
malarkey
396
63k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
217
21k
Gamification - CAS2011
davidbonilla
75
4.1k
Why Our Code Smells
bkeepers
PRO
326
55k
Happy Clients
brianwarren
90
5.8k
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Ͱग़དྷΔ͜ͱҰ௨Γ ग़དྷΔ • Շۦಈ։ൃྨۦಈ։ൃͳͲʹ͓͢͢ΊͰ͢