Slide 20
Slide 20 text
ΠϯλϑΣʔεͷίϝϯτ
• ͍ํ͏্Ͱͷҙࣄ߲͕ॻ͍ͯ͋Δ
/*
HTTP ͷαʔόͱΫϥΠΞϯτͷ࣮Λఏڙ͢ΔΠϯλϑΣʔε
Get, Head, Post ͳͲͷ HTTP ϦΫΤετΛૹΔ߹ɺԼهͷํ๏ͰૹΔ
resp, err := http.Get("http://example.com/")
...
listenAndServeؔΛ࣮ߦͨ͠ࡍʹطʹಉ͡ϙʔτΛlisten͍ͯͨ͠߹
FatalΤϥʔͱͳΓɺىಈʹࣦഊ͢Δɻ
*/