hoscon-golang-handson

67929244eefba4a6190a73236e9717c6?s=47 ry023
November 20, 2018
580

 hoscon-golang-handson

67929244eefba4a6190a73236e9717c6?s=128

ry023

November 20, 2018
Tweet

Transcript

  1. (P8FCΞϓϦΛಈ͔ͯ͠ΈΑ͏ϋϯζΦϯ ϚωʔδυΫϥ΢υνʔϜ(.01FQBCP *OD (.0ϗείϯ (PͰ50%0ΞϓϦͷ "1*αʔόΛσϓϩΠ  

  2. ϋογϡλά IPTDPONDMPMJQPQ  

  3. ΤϯδχΞ ాதྒհ!SZ@ ϗεςΟϯάࣄۀ෦ϚωʔδυΫϥ΢υνʔϜ  

  4. ࠓճͷϋϯζΦϯͷ໨ඪ  

  5. (PͰॻ͘8FCΞϓϦέʔγϣϯͷ งғؾΛମݧ͢Δ  

  6. ͰɺԿΛ࡞ΔΜ͍ͩʁ  

  7. ࠓ೔ͭ͘Δ΋ͷ   w50%0ΞϓϦͷ"1*αʔόΛ࡞Γ·͢ wϑϩϯτΤϯυଆ͸࡞Γ·ͤΜ w୅ΘΓʹɺ5PEP#BDLFOEͱ͍͏αΠτΛར༻͠·͢ w+40/Ԡ౴͢Δ͚ͩͰͳ͘ɺϑΝΠϧ഑৴͢Δํ๏΋ͪΐͬͱ঺հ

  8. ͜Μͳײ͡  

  9. ΋ͬͱݴ͏ͱ͜Μͳײ͡  

  10. αϯϓϧΞϓϦέʔγϣϯͷશମߏ੒ w"1*αʔόΛϚωʔδυΫϥ΢υͰߏங͠ɺ5PEP#BDLFOEΛϑϩϯτΤϯ υͱͯ͠ར༻͠·͢ɻ   5PEP#BDLFOE "1*αʔόʢࠓճͷ։ൃൣғʣ )551ϦΫΤετ Ϩεϙϯε +40/

  11. ΍ͬͯΈ·͠ΐ͏ʂ  

  12. ຊ೔ͷਐߦද  ࣄલ४උͷ֬ೝ  ϩϦϙοϓʂϚωʔδυΫϥ΢υͰ(PϓϩδΣΫτΛ࡞ͬͯΈΔ  ·ͣ͸σϓϩΠͯ͠ಈ࡞ΛݟͯΈ·͠ΐ͏ʂ  ҰॹʹίʔυΛ௥ͬͯߦͬͯΈ·͠ΐ͏ 

    ϑϦʔλΠϜʂࣗ༝ʹػೳΛ௥Ճͯ͠Έ·͠ΐ͏ʂ࣭͝໰౳΋  
  13. ࣄલ४උͷ֬ೝ ϚωʔδυΫϥ΢υͷΞΧ΢ϯτొ࿥͸ࡁ·ͤ·͔ͨ͠ʁ wΫϨδοτΧʔυͷొ࿥͸ࡁ·ͤ·͔ͨ͠ʁ (PͷΠϯετʔϧ͸׬͍ྃͯ͠·͔͢ʁ w(P͸࠷৽ͷWFSͰ͋Δඞཁ͕͋Γ·͢ʂ 44)ެ։伴ͷొ࿥͸׬͍ྃͯ͠·͔͢ʁ  

  14. ֬ೝGPS8JOEPXT (JUίϚϯυ΍(PίϚϯυ͸ར༻Ͱ͖·͔͢ʁ w(JUίϚϯυ͕࢖͑Δ؀ڥͰ44)ެ։伴ͷઃఆ͸͍ͯ͠·͔͢ʁ w1VUUZ΍5FSB5FSNͰ͸ͳ͘ɺ(JUGPS8JOEPXTͷ؀ڥͳͲ 4$1ͷ࣮ߦ͸Ͱ͖·͔͢ʁ wATDQAίϚϯυɺ΋͘͠͸ԿΒ͔ͷ4$1ϓϩάϥϜͷखஈ͸͋Γ·͔͢ʁ w4$1ͷ؀ڥʹ44)ެ։伴ͷઃఆ͸͍ͯ͠·͔͢ʁ ؀ڥߏஙʹࠔͬͨΒIUUQTHJUIVCDPNQFQBCPUPEPCBDLFOEHPMBOHND CMPCNBTUFSEPDT)08@50@4&561@8*/%084@&/7*30/.&/5NE 

    
  15. ·ͣ͸ɺϚωʔδυΫϥ΢υʹ (PϓϩδΣΫτΛ࡞Γ·͢  

  16. (PϓϩδΣΫτͷ࡞੒  

  17. (PϓϩδΣΫτͷ࡞੒ w ΞϓϦέʔγϣϯબ୒Ͱ(PΛΫϦοΫ w ΧελϜυϝΠϯͱσʔλϕʔεͷύεϫʔυΛೖྗ w σʔλϕʔεͷύεϫʔυ͸ϝϞ͓͍͍ͯͯͩ͘͠͞  

  18. (PϓϩδΣΫτͷ࡞੒ wʮ࡞੒͢ΔʯΛΫϦοΫ  

  19. (PϓϩδΣΫτͷ࡞੒ wίϯςφͷ४උΛ଴ͪ·͢ɻɻɻ  

  20. (PϓϩδΣΫτͷ࡞੒   Ͱ͖ͨʂ

  21. (PϓϩδΣΫτ΁44)઀ଓ֬ೝ  

  22. (PϓϩδΣΫτ΁44)઀ଓ w࡞੒ͨ͠(PϓϩδΣΫτͷ44)ίϚϯυΛίϐʔ͠·͢  

  23. (PϓϩδΣΫτ΁44)઀ଓʢ(JUͷ֬ೝʣ wखݩͷ؀ڥͰҎԼͷͭͷίϚϯυΛ࣮ߦͯ͠Έ͍ͯͩ͘͞   > git version # GitίϚϯυͷ֬ೝ git

    version 2.19.1 > ssh -p 10022 cold-yufuin-9623@ssh-1.mc.lolipop.jp # ίϐʔͨ͠SSH ίϚϯυΛ࣮ߦ
  24. ४උ׬ྃ  

  25. ͦΕͰ͸(Pͷ8FCΞϓϦέʔγϣϯ ΛσϓϩΠͯ͠Έ·͠ΐ͏  

  26. ࠓճͷαϯϓϧ8FCΞϓϦέʔγϣϯ wIUUQTHJUIVCDPNQFQBCPUPEPCBDLFOEHPMBOHND w50%0ΞϓϦͷ"1*αʔό w5PEP#BDLFOE IUUQTUPEPCBDLFOEDPN ϓϩδΣΫτͷεϖοΫʹରԠ w(P͸"1*αʔόͱͯ͠࠾༻͞ΕΔ͜ͱ͕ଟ͍ w௥ՃͰAIUNMUFNQMBUFAύοέʔδΛར༻ͨ͠)5.-ϨϯμϦϯάͷαϯ ϓϧίʔυ΋௥Ճ͍ͯ͠·͢ 

    
  27. αϯϓϧΞϓϦέʔγϣϯͷશମߏ੒ w"1*αʔόΛϚωʔδυΫϥ΢υͰߏங͠ɺ5PEP#BDLFOEΛϑϩϯτΤϯ υͱͯ͠ར༻͠·͢ɻ   5PEP#BDLFOE "1*αʔόʢࠓճͷ։ൃൣғʣ )551ϦΫΤετ Ϩεϙϯε +40/

  28. ιʔείʔυΛμ΢ϯϩʔυ wHJUDMPOF΋͘͠͸;*1Λμ΢ϯϩʔυ͠·͢   > git clone https://github.com/pepabo/todo-backend-golang-mc.git

  29. ͔͜͜Β3&"%.&NEΛݟͳ͕Β σϓϩΠΛ͍͖ͯ͠·͠ΐ͏  

  30. (0ʂ ʢ3&"%.&NEͷʮಈ࡞֬ೝํ๏ʯ·Ͱʣ  

  31. σϓϩΠͰ͖·͔ͨ͠ʁ  

  32. "1*αʔόͷػೳҰཡ   ϝιου ύε Ϩεϙϯε ֓ཁ (&5 UPEPT +40/

    50%0Ұཡ 1045 UPEPT +40/ ৽ن50%0࡞੒ %&-&5& UPEPT +40/ 50%0Λશͯ࡟আ (&5 UPEPT\JE^ +40/ 50%0Λऔಘ 1"5$) UPEPT\JE^ +40/ 50%0Λमਖ਼ %&-&5& UPEPT\JE^ +40/ 50%0Λ࡟আ (&5  )5.- IUNMUFNQMBUFͰͷ)5.-ϨϯμϦϯά (&5 BTTFUT ը૾ϑΝΠϧ΍$44ϑΝΠϧͷ഑৴
  33. ҰॹʹίʔυΛΈ͍͖ͯ·͠ΐ͏  

  34. ҰॹʹίʔυΛΈ͍͖ͯ·͠ΐ͏ ྫ͑͹ NBJO ͱIUUQ-JTUFO"OE4FSWF  ϧʔςΟϯά HPDIJ  σʔλϕʔεͷ઀ଓͱTUSVDU΁ͷϚοϐϯά TRMY

     IUUQUFNQMBUF   ࣭໰͕͋Ε͹͍ͭͰ΋ฉ͍͍͍ͯͨͩͯେৎ෉Ͱ͢ʂ
  35. ͜͜·ͰͰϋϯζΦϯ͸Ұ୴ऴྃͰ͢  

  36. ͕࣌ؒ͋ΔݶΓखΛಈ͔ͯ͠Έ·͠ΐ͏ wΑ͘෼͔Βͳ͔ͬͨͱ͜ΖΛ࣭໰͢Δ w"1*αʔόͷ(Pͷίʔυ΍σϓϩΠͷ࢓૊ΈͳͲ wಉ͡ಈ͖Λ͢Δଞͷ࣮૷ΛݟͯΈΔ wIUUQTUPEPCBDLFOEDPN wࠓճ࡞࣮ͬͨ૷Λڵຯͷ͋ΔϑϨʔϜϫʔΫ΍03.ʹஔ͖ ׵͑ͯΈΔʢ&DIP΍(JOɺ(PSNͳͲ