diff options
| author | 2024-08-09 08:50:57 -0700 | |
|---|---|---|
| committer | 2024-08-09 08:52:26 -0700 | |
| commit | cc5ce659fc69c2483d1621be14b7c0968c863579 (patch) | |
| tree | 46c8eb4db846f64deb293aa9080b15f1fef713f3 /golang/golang_test.go | |
| parent | c8b6feba4c21e079a833a5781a0c22a7d75b5011 (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