summaryrefslogtreecommitdiff
path: root/soundbox/network.go
diff options
context:
space:
mode:
authorxegineering <me@xegineering.eu>2024-11-27 21:55:40 +0100
committerxegineering <me@xegineering.eu>2024-11-27 21:55:40 +0100
commitbb84332ef7ca114f0c608bbea7f11451f010a831 (patch)
tree422f69f77e628573aec6e6291b6939a26ad238e8 /soundbox/network.go
parent6b7da29eea100b92659a3f1f5df6958ebad544c8 (diff)
downloadsoundbox-go-bb84332ef7ca114f0c608bbea7f11451f010a831.tar
soundbox-go-bb84332ef7ca114f0c608bbea7f11451f010a831.tar.zst
soundbox-go-bb84332ef7ca114f0c608bbea7f11451f010a831.zip
Handle read error after processing buffer
This is recommended by the Go standard library. One reason is that a Reader might deliver the last couple of bytes together with the EOF error. This is only handled correctly if the returned bytes are processed first and the error is handled later. [1]: https://pkg.go.dev/io#Reader
Diffstat (limited to 'soundbox/network.go')
0 files changed, 0 insertions, 0 deletions