summaryrefslogtreecommitdiff
path: root/golang/golang_test.go
diff options
context:
space:
mode:
author Tamir Duberstein <tamird@gmail.com> 2024-08-09 08:50:57 -0700
committer Tamir Duberstein <tamird@gmail.com> 2024-08-09 08:52:26 -0700
commitcc5ce659fc69c2483d1621be14b7c0968c863579 (patch)
tree46c8eb4db846f64deb293aa9080b15f1fef713f3 /golang/golang_test.go
parentc8b6feba4c21e079a833a5781a0c22a7d75b5011 (diff)
Encode directly into file
This avoids allocating an intermediate buffer in memory *and* avoids an unchecked error on `(*File).Write` which can mask partial writes. Check error on `(*File).Close` while I'm here. Change-Id: I9f7c70f1eb267155c080e44c50a99bdca62dea05
Diffstat (limited to 'golang/golang_test.go')
0 files changed, 0 insertions, 0 deletions