Upgrade to Pro — share decks privately, control downloads, hide ads and more …

日報を golang で支える技術

日報を golang で支える技術

github-nippou という gem を golang で書き直したお話です。
https://developer.feedforce.jp/entry/2017/10/16/150000

Takashi Masuda

October 14, 2017
Tweet

More Decks by Takashi Masuda

Other Decks in Programming

Transcript

  1. ͜Ε·Ͱͷ͓࿩ w ͷࣾ಺ษڧձͰɺHJUIVCOJQQPVͱ͍͏HFN Λ࡞ͬͨ࿩Λͨ͠ w (JU)VCͷࠓ೔ͷߦಈΛ੔ܗͯ͠ग़ྗ͢Δπʔϧ w ݩ͸-*/&ͷ͖͚ͨʔ !LJUBL ͞ΜͷεΫϦϓτ

    w (JU)VCͷ&WFOUT"1*ͷ࢓༷ʹԊͬͨΓɺฒྻॲཧΛ ࣮૷ͨ͠Γͯ͠ɺͦͦ͜͜ຬ଍Ͱ͖Δπʔϧʹͳͬͨ IUUQTNBTVUBLBOFUDIBMPXIUNM
  2. ୅ସϥΠϒϥϦͳͲ SVCZ HPMBOH PDUPLJUHFN HJUIVCDPNHPPHMFHPHJUIVC ˞ QBSBMMFMHFN 5ISFBE HPSPVUJOF DIBOOFM

    UIPSHFN HJUIVCDPNTQGDPCSB :".-.PEVMF HPQLHJOZBNMW MBVODIZHFN HJUIVCDPNTLSBUDIEPUPQFOHPMBOH IJHIMJOFHFN GNUQBDLBHF /BNFEGPSNBUTUSJOH UFYUUFNQMBUFQBDLBHF ˞ ˞HJUIVCDPNPDUPLJUHPPDUPLJU͸։ൃ͕ࢭ·͍ͬͯ·͢ ˞಺෦Ͱ\IPHF^Λ\\IPHF^^ʹม׵͠·ͨ͠
  3. ୅ସϩδοΫͳͲ w 0DUPLJU$MJFOUTDPQFT ˞ ͳΜ͍ͯ͏ศརϝιο υ͸ͳ͔ͬͨɻίʔυΛಡΜͰ MJCHFU$MJFOU4DPQFT Λࣗ࡞ͨ͠ w "TTFU

    DPOpHTFUUJOHTZNM ͸ϓϩάϥϜ͔Βࢀ রͰ͖ͳ͘ͳΔɻHJUIVCDPNKUFFVXFOHP CJOEBUBͰCJOEBUBHPʹม׵ɻ͍͍ײ͡ͷNBLF ͷSVMF΋ॻ͍ͨ ˞IUUQTHPPHMN[D#J.
  4. ࠔͬͨ͜ͱ w ͱʹ͔ؔ͘਺͕௕͘ͳΓ͕ͪ w HFU999 ଟ͘ͳΓ͗͢ w ϑΝΠϧ෼ׂͷҙຯ w ॻ͚͹ॻ͘΄ͲHPMBOHͬΆ͍ॻ͖ํ͕෼͔Βͳ͘ͳΔ

    w 001Ͱ͸ͳ͍͜ͱ΁ͷށ࿭͍ʢঃʑʹʣ w 3VCZ͕ॊೈ͗ͯ͢Ҡ২͸೉͔ͬͨ͠ɻΦεεϝ͸͠ͳ͍
  5. ׬