Opening Keynote at GopherCon 2016 Is it a constant? A variable? Where is it defined? What is its type? It has no type? It has all the types? Those ar…
![Understanding Nil](https://cdn-ak-scissors.b.st-hatena.com/image/square/64a79b526fe74134eef044fc80a5c05a1472f2ad/height=288;version=1;width=512/https%3A%2F%2Ffiles.speakerdeck.com%2Fpresentations%2Fb88490edd6e9435aa785afa713cc30e2%2Fslide_0.jpg%3F6587798)
結局 golang の HTTP Response Body はどう閉じるのが正しいのか? - 押してダメならふて寝しろ でいろいろ考察して参りましたが, mattn さんが Russ Cox さんに聞いてくださって解決しました. resp.Body.Close の件、Russ Cox から返事貰った。err が返るならコネクションは閉じられているし、もし現状がそうなってないならば net/http を直すべきだと。なので、みんな間違ってなかった。 #golang— mattn (@mattn_jp) 2015, 6月 6 ということなので,今まで通りエラーかどうかチェックして Response Body を閉じればいい. 正) resp, err := http.Get("http://example.com/") if err != nil { // handle error } de
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く