嫁に怒られずにGoを書く技術

 嫁に怒られずにGoを書く技術

F3ba76698a3a2ea827abd7b73d74a5b7?s=128

teitei_tk

March 01, 2017
Tweet

Transcript

  1. ՇʹౖΒΕͣʹ GoΛॻٕ͘ज़ @teitei_tk

  2. ࣗݾ঺հ • @teitei_tk • freee k.k • Go/PHP/Ruby/Python • Go͸झຯ੎

  3. ࠓ೔஻Δ͜ͱ

  4. GoͰνϟοτBOT on LINE

  5. ࣮͸Ұ౓࡞ͬͨ

  6. LINEBOT SDK GOΛ࢖ͬͯ ݄༵೔ͷͨΘΘBOTΛ࡞ͬͨɻ http://qiita.com/teitei_tk/items/c313a02e78e3045fdf5f

  7. ΋͏গ͠ ࣮༻తͳ෺Λ࡞Δ

  8. ͷલʹͳͥLINE Bot͔ • ݱࡏ೔ຊͰҰ൪Α͘࢖ΘΕ͍ͯΔͰ͋Ζ͏νϟοτ αʔϏε • Շۦಈ։ൃ΍Ո଒ۦಈ։ൃͳͲͷݴ͍༁ʹ࢖͑Δ • ※͜Ε͚͕ͩݴ͍͍͕ͨҝʹൃද͍ͯ͠ΔΑ͏ͳ΋ͷ

  9. ࠓ೔ͷ ఱؾΛ௨஌͢Δ

  10. ༻ҙ͢Δ෺ • Go͕Πϯετʔϧ͞Ε͍ͯͯΠϯλʔωοτʹ ܨ͕Δαʔό1୆ • υϝΠϯ1ͭ • SSL/TLS ূ໌ॻ(Let’s encryptՄ)

  11. αʔόߏஙɺ SSLͷઃఆ͸লུ

  12. ఱؾ৘ใͷऔಘ

  13. API͕͋Δ • http://weather.livedoor.com/weather_hacks/ webservice • LINE͞Μʹײँ

  14. ެࣜExampleʹ Φ΢Ϝฦ͕͋͠Δ https://github.com/line/line-bot-sdk-go/blob/master/ examples/echo_bot/server.go

  15. ͜ΕʹखΛՃ͑Δ

  16. None
  17. None
  18. None
  19. ޙ͸BotΛՈ଒ͱͷLINE άϧʔϓʹೖΕΔ͚ͩ

  20. ࣮ࡍʹ खΛ෇͚Α͏ͱ͍ͯ͠Δ΋ͷ • ອըͷ৽ץग़ͨࡍͷ௨஌ • GoogleCalendarʹ͋Δ༧ఆͷ௨஌ • TODOϦετͷ௨஌

  21. ·ͱΊ • Slack΍Hipchat౳ͷBOTͰग़དྷΔ͜ͱ͸Ұ௨Γ ग़དྷΔ • Շۦಈ։ൃ΍਌ྨۦಈ։ൃͳͲʹ͓͢͢ΊͰ͢