diff options
author | xegineering <me@xegineering.eu> | 2024-11-28 22:44:28 +0100 |
---|---|---|
committer | xegineering <me@xegineering.eu> | 2024-11-28 22:44:28 +0100 |
commit | 99031596efbcf004188217d2a9e53ac5ce33b511 (patch) | |
tree | 34425218468652238956029371ba3ad123f7a389 /soundbox/network_test.go | |
parent | bb84332ef7ca114f0c608bbea7f11451f010a831 (diff) | |
download | soundbox-go-99031596efbcf004188217d2a9e53ac5ce33b511.tar soundbox-go-99031596efbcf004188217d2a9e53ac5ce33b511.tar.zst soundbox-go-99031596efbcf004188217d2a9e53ac5ce33b511.zip |
Replace custom code by io package functions
This makes use of two functions from this package:
- io.Copy()
- io.MultiWriter()
`io.Copy()` is used to move the data from whatever reader is provided.
`io.Multiwriter()` solves the issue that we need to stream to multiple
network connections at the same time (one for each soundbox).
Diffstat (limited to 'soundbox/network_test.go')
0 files changed, 0 insertions, 0 deletions