Go合宿進捗ありません

 Go合宿進捗ありません

Go合宿@土善旅館でのLT

7d709dd44f86dc8f2b7ddb4c48145dfc?s=128

jollyjoester

April 23, 2017
Tweet

Transcript

  1. 2017/04/23 jollyjoester Go߹॓ ਐḿ͋Γ·ͤΜ

  2. ࣗݾ঺հ

  3. • ࣣౡҒ೭(@jollyjoester) • Repro Inc. • ͢΂ͯख़஌ / Kanpai-er •

    ೖ໳ऀ޲͚iOSΞϓϦ։ൃຊॻ͍ͨ Coming Soon
  4. SwiftѪ޷ձ • Swift޷͖͕ू·ͬͯΘ͍Θ͍ʰָ͠Ήձʱ • Ϩϕϧɺܦݧ౳ෆ໰ ‣ Swift͕޷͖ͳਓʂ ‣ SwiftΛ޷͖ʹͳΔ༧ఆͷਓ ‣

    Ή͠ΖSwift͔Β޷͔Ε͍ͯΔਓ • ݄̍։࠵໨ඪ ‣ ฏ೔ɿஊٛ ‣ ٳ೔ɿ଱ٱ΋͘΋͘ձʴஊٛ ࣍ճ4/28
  5. ࢲͷGoܦྺ • ॳΊ͔ͯΒগͳ͘ͱ΋542೔ ɹ ɹ ɹ ɹ

  6. ࢲͷGoܦྺ • ॳΊ͔ͯΒগͳ͘ͱ΋542೔ • ࣮࣭΍ͬͨͷ͸3೔ ɹ ɹ ɹ

  7. ࢲͷGoܦྺ • ॳΊ͔ͯΒগͳ͘ͱ΋542೔ • ࣮࣭΍ͬͨͷ͸3೔ • υοτΠϯετʔϧʢ542೔લʣ ɹ ɹ

  8. ࢲͷGoܦྺ • ॳΊ͔ͯΒগͳ͘ͱ΋542೔ • ࣮࣭΍ͬͨͷ͸3೔ • υοτΠϯετʔϧʢ542೔લʣ • Goೖ໳ऀ޲͚ϋϯζΦϯʢڈ೥ͷͲ͔͜ʣ ɹ

  9. ࢲͷGoܦྺ • ॳΊ͔ͯΒগͳ͘ͱ΋542೔ • ࣮࣭΍ͬͨͷ͸3೔ • υοτΠϯετʔϧʢ542೔લʣ • Goೖ໳ऀ޲͚ϋϯζΦϯʢڈ೥ͷͲ͔͜ʣ •

    Go߹॓ʂ
  10. ࠓճͷࢥ࿭ ʮA Tour of GoͰ΋ͪΌͪΌͬͱ΍ͬͯͳΜ͔ͷΞϓϦ έʔγϣϯ࡞Δͧʂʯ

  11. ɹ݁Ռ

  12. ɹ݁Ռ ਐḿ͋Γ·ͤΜ

  13. A Tour of Goܦա • ࠷ॳʹ্ా͞Μͷ࿩Λฉ͘ʢ΍Δؾˢʣ • A Tour of

    GoΛ࢝ΊΔʢ΍Δؾˢʣ • ͍ͭ·Ͱܦͬͯ΋ऴΘΒͳ͍ʢ΍Δؾˢʁʣ • ͩΜͩΜͭ·ͮ͘͜ͱ͕ଟ͘ͳ͖ͬͯͨʢ΍Δؾˣʁʣ • શମͷϘϦϡʔϜݟͯΈͨʢ΍Δؾˣʣ ʢstructʹϝιουੜ΍͢ͱ͜·Ͱ͔͠ߦ͚ͳ͔ͬͨʣ
  14. A Tour of Go ͭ·͖ͮϙΠϯτ̍ • Capacity is Կʁ

  15. A Tour of Go ͭ·͖ͮϙΠϯτ̍ • range is Կʁ

  16. A Tour of Go ͭ·͖ͮϙΠϯτ̍ • deferͷείʔϓ

  17. ܾஅ ϐϘοτ͢Δͧʢಀ͛ͨʣ

  18. ࣍ͷ࡞ઓ • จ๏ͱ͔Θ͔Βͳͯ͘΋ಈ͘΋ͷ͕͋Ε͹͍͍΂ • ʮKamiʯͬͯͷΛ࡞ͬͨਓ͕ࢀՃऀʹ͍ΔΒ͍͠ͷͰΈ ͯΈΔ͔ • ʢ࠷ѱ࡞ऀ͔Β̍ථ͍͖ͨͩͩ΂ʣ

  19. Kami৮ͬͯΈͨ • Web framework with context • https://github.com/guregu/kami

  20. Kami৮ͬͯΈͨ

  21. Kamiಈ͍ͨ

  22. Ҏ্

  23. ͬ͞ͺΓΘ͔ΒΜ

  24. ͱ͸͍͑
 ֶΜͩ͜ͱ • contextύοέʔδ is Կ • Middleware is Կ

    • net/http΍ΕΑ
  25. contextύοέʔδ • ϦΫΤετͷΩϟϯηϧͱλΠϜΞ΢τͱϦΫΤετε ίʔϓͷม਺Λѻ͏΋ͷ • Go 1.7͔Βຊମʹ౷߹ • *http.Requestʹcontextؔ࿈ͷϝιου͕௥Ճ͞Εͨ •

    Kami͸͜Ε͕ग़ΔલʹcontextΛѻ͍͔ͨͬͨ
  26. Middleware is Կʁ • ΞϓϦέʔγϣϯͷϝΠϯϩδοΫͷલޙʹڬΉॲཧ • ʢLaravelͱ͔Ͱ΋ݟ͔͚ͨݴ༿ͳͷͰ࠷ۙͷαʔόʔα ΠυͰ͸ී௨ͷ֓೦ʁʣ

  27. Goͷnet/http͸ڧྗ ͱΓ͋͑ͣnet/httpΛ΍ͬͯΈͳ͸Ε

  28. ͬͯ@guregu͞Μ͕ݴͬͯͨ

  29. ࢀߟࢿྉ • https://github.com/guregu/kami#usage • http://go-talks.appspot.com/github.com/guregu/ slides/kami/kami.slide#1 • https://blog.golang.org/context

  30. Always See Everything

  31. Thank you!