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
0
2.5k
嫁に怒られずにGoを書く技術
teitei_tk
March 01, 2017
Tweet
Share
More Decks by teitei_tk
See All by teitei_tk
Claude Code × WebLLM:AI駆動開発で作る次世代PDF要約ツール
teitei
0
60
dive to Ruby on Rails module autoloading
teitei
1
4.4k
貴方はOmniAuth::AuthHashを知っていますか?
teitei
0
8k
myhome-progress
teitei
0
78
recommend parallel career
teitei
0
1.1k
impression of google chrome headless
teitei
0
1.8k
AWS parking lot shutter hack project
teitei
2
3.9k
Other Decks in Programming
See All in Programming
はじめてのMaterial3 Expressive
ym223
2
860
Navigating Dependency Injection with Metro
zacsweers
3
2.5k
AI Coding Agentのセキュリティリスク:PRの自己承認とメルカリの対策
s3h
0
230
詳解!defer panic recover のしくみ / Understanding defer, panic, and recover
convto
0
250
Putting The Genie in the Bottle - A Crash Course on running LLMs on Android
iurysza
0
140
AIコーディングAgentとの向き合い方
eycjur
0
270
GitHubとGitLabとAWS CodePipelineでCI/CDを組み比べてみた
satoshi256kbyte
4
240
CJK and Unicode From a PHP Committer
youkidearitai
PRO
0
110
AI時代のUIはどこへ行く?
yusukebe
18
9k
さようなら Date。 ようこそTemporal! 3年間先行利用して得られた知見の共有
8beeeaaat
3
1.5k
How Android Uses Data Structures Behind The Scenes
l2hyunwoo
0
470
Updates on MLS on Ruby (and maybe more)
sylph01
1
180
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
50k
Building Adaptive Systems
keathley
43
2.7k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.1k
Optimizing for Happiness
mojombo
379
70k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
A designer walks into a library…
pauljervisheath
207
24k
Large-scale JavaScript Application Architecture
addyosmani
513
110k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
33
2.4k
How GitHub (no longer) Works
holman
315
140k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3k
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Ͱग़དྷΔ͜ͱҰ௨Γ ग़དྷΔ • Շۦಈ։ൃྨۦಈ։ൃͳͲʹ͓͢͢ΊͰ͢