Slide 1

Slide 1 text

Head First Golang image package @__timakin__ golang.tokyo#19

Slide 2

Slide 2 text

SEIJI TAKAHASHI

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

ΞδΣϯμ *NBHFύοέʔδͷ঺հ ࣮ྫͰֶͿ*NBHFύοέʔδ ը૾ͷ߹੒ɾՃ޻ ը૾ͱจࣈͷ߹੒

Slide 5

Slide 5 text

QBDLBHFl*NBHFz w %ը૾Λѻ͏ͨΊͷύοέʔδ w +1( 1/( (*'ʹରԠ w Ͱ͖Δ͜ͱ w ৭৘ใऔಘ w 1PJOU 3FDUBOHMFͷૢ࡞ w ݁߹ॲཧʢESBXʣ w ϑΥʔϚοτͷσίʔυ

Slide 6

Slide 6 text

ྫʣ੺ͷ࢛֯ܗΛඳը

Slide 7

Slide 7 text

ϞβΠΫ γϟʔϓௐ੔ ໌Δ͞ௐ੔ ͳͲɺେମ΍Γ͍ͨ͜ͱ͸Ͱ͖Δ͕ ίʔυྔ͕ଟ͗͢ΔͷͰׂѪ

Slide 8

Slide 8 text

ͱ͍͏͔

Slide 9

Slide 9 text

࢛֯΍ؙͷඳըͱ͔ Ṗͷ৭ௐ੔ͱ͔

Slide 10

Slide 10 text

ͦΜͳ͜ͱͨͯ͘͠ ͜͜ʹ͖ͯ·͔͢ʁ

Slide 11

Slide 11 text

࣮ફͯ͠Έ·͠ΐ͏ʂ

Slide 12

Slide 12 text

ը૾ͷ߹੒ɾՃ޻

Slide 13

Slide 13 text

ͱ͜ΖͰօ͞Μ

Slide 14

Slide 14 text

!EFFFFU͞Μɻ ࠃ಺ͰϚΠΫϩαʔϏεͱ ͍͑͹͜ͷํɻ

Slide 15

Slide 15 text

Ͱ͕͢ɺ

Slide 16

Slide 16 text

ˌEFFFFU෩

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

खʹ࣋ͬͨΦϒδΣΫτʢʣΛ தԝʹਾ͑ͳ͕Β ࣸਅΛࡱΔࡱӨٕ๏ʢʁʣ

Slide 19

Slide 19 text

!?

Slide 20

Slide 20 text

खʹ࣋ͬͨΦϒδΣΫτʢʣΛ தԝʹਾ͑ͳ͕Β ࣸਅΛࡱΔࡱӨٕ๏ʢʁʣ

Slide 21

Slide 21 text

ͦΜͳʹखʹ͓͠ΌΕͳ Λ࣋ͭػձ͸ͳ͍

Slide 22

Slide 22 text

୭Ͱ΋ख๏Λ࠶ݱͰ͖Δͱศར

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

஫ɿW

Slide 25

Slide 25 text

΍Γ͍ͨ͜ͱ w Ͱ͍͍ײ͡ͷงғؾΛग़͍ͨ͠ w ͦΕΛखʹ࣋ͬͨঢ়ଶͰதԝʹఴ͍͑ͨ w ʹϑΥʔΧε͍ͯ͠Δ෩ʹ͍ͨ͠

Slide 26

Slide 26 text

ඞཁͳ΋ͷ w खɺɺഎܠ

Slide 27

Slide 27 text

ΦϦδφϧ

Slide 28

Slide 28 text

ඞཁͳͱ͜Ζ

Slide 29

Slide 29 text

෼཭

Slide 30

Slide 30 text

ద౰ͳഎܠΛ୳͢

Slide 31

Slide 31 text

ݟ͚ͭΔ

Slide 32

Slide 32 text

࣮૷ w ྆ը૾ͷಡΈࠐΈ w എܠʹద౓ͳ΅͔͠ΛೖΕΔ w खͷը૾Λਃ͠༁ఔ౓ʹαΠζௐ੔͢Δ w खट͕ࠨԼʹདྷΔΑ͏ʹͬ͢ͱ߹੒ w ϑΝΠϧग़ྗ

Slide 33

Slide 33 text

HJUIVCDPNEJTJOUFHSBUJPOJNBHJOH w JNBHFύοέʔδͷϥούʔ w ΅͔͠΍໌౓ௐ੔͕΋ͷ͍͢͝؆୯ʹͰ͖Δ

Slide 34

Slide 34 text

ਃ͠༁ఔ౓ͷαΠζௐ੔

Slide 35

Slide 35 text

ͬ͢ͱࠨԼʹ߹੒

Slide 36

Slide 36 text

ग़ྗʜ

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

ը૾ͷ߹੒ɾՃ޻ w HJUIVCDPNEJTJOUFHSBUJPOJNBHJOHΛ࢖͏ ͱ͍ͩͿָʹ΅͔͠ͳͲΛೖΕΒΕΔ w ߹੒ͷࡍ͸ج४఺͕ࠨ্Ͱ͋Δ͜ͱʹ஫ҙ w ਖ਼௚༧૝֎ͷͦΕͬΆ͞ʹͳͬͨ

Slide 39

Slide 39 text

ˠਅ໘໨ͳ࿩

Slide 40

Slide 40 text

αʔϏεӡ༻தɺ Ϛʔέࢪࡦͱͯ͠0(1ը૾Λ ࡞੒͢Δ͜ͱ͕͋ΔͷͰ͸ʁ

Slide 41

Slide 41 text

ը૾ͱจࣈͷ߹੒

Slide 42

Slide 42 text

΍Γ͍ͨ͜ͱ w 0(1എܠը૾ʹจࣈΛ߹੒͢Δ w ೚ҙͷจࣈྻΛ೚ҙͷϑΥϯτͰɺ
 ద੾ͳҐஔʹදࣔ͢Δ

Slide 43

Slide 43 text

ૉࡐ

Slide 44

Slide 44 text

࣮૷ w ೚ҙͷϑΥϯτΛಡΈࠐΉ w ͦͷϑΥϯτͰςΩετΛ೚ҙͷҐஔʹඳը w എܠͱॏͶ߹Θͤͯॻ͖ग़͠

Slide 45

Slide 45 text

HJUIVCDPNHPMBOHGSFFUZQFUSVFUZQF w ೚ҙͷϑΥϯτͰςΩετΛ೚ҙͷҐஔʹग़͢ʹ͸ɺ ௨ৗͷը૾Ճ޻Ͱ͸ෆՄɻ w GSFFUZQFύοέʔδΛ࢖͏ɻ

Slide 46

Slide 46 text

ϑΥϯτͷಡΈࠐΈ

Slide 47

Slide 47 text

എܠΛॻ͖ग़͓ͯ͘͠

Slide 48

Slide 48 text

GPOU%SBXFSΛ࢖ͬͨςΩετඳը

Slide 49

Slide 49 text

ग़ྗʜ

Slide 50

Slide 50 text

ग़ྗʜ

Slide 51

Slide 51 text

ը૾ͱจࣈͷ߹੒ w ϑΥϯτ΍Ґஔௐ੔Λॊೈʹ͍ͨ͠৔߹ɺ
 GSFFUZQFύοέʔδͱGPOU%SBXMFSͷ߹Θٕͤ Ͱ͍͚Δ w ը૾ͷͲͷҐஔʹදࣔ͢Δ͔ɺจࣈͷંΓฦ͠͸
 Ͳ͏͢Δ͔͸దٓௐ੔ͷඞཁ͋Γ

Slide 52

Slide 52 text

·ͱΊ JNBHFͰ৭ɾେ͖͞ͳͲ͕؆୯ʹऔಘͰ͖Δ ϥούʔΛ࢖͑͹Ճ޻΋؆୯ ߹੒ͷ৔߹͸࠲ඪɾॻ͖ग़͠ॲཧͷ࣮૷͕ར༻έʔεʹԠ͡ ͯมΘͬͯ͘ΔͷͰ஫ҙͷඞཁ͋Γ

Slide 53

Slide 53 text

͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ