commit | 145598a5c00bb3cdec425160884de9b4070eb98b | [log] [tgz] |
---|---|---|
author | Fumitoshi Ukai <fumitoshi.ukai@gmail.com> | Fri Jun 19 10:08:17 2015 +0900 |
committer | Fumitoshi Ukai <fumitoshi.ukai@gmail.com> | Fri Jun 19 10:09:38 2015 +0900 |
tree | ffba3384eb8e6cf2dfd5d8f3496f3e6a55f352bb | |
parent | 57088ceb79dbbc000d187fa67400a9390e113b05 [diff] |
reduce string -> []byte conversion in Write and w.Write([]byte{x}) use io.WriteString(w, str) instead of w.Write([]byte(str)) use writeByte(w, b) instead of w.Write([]byte{b})