Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-11-27 | Handle read error after processing buffer | xegineering | |
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 | |||
2024-11-27 | Introduce io.Reader-based streamContext() | xegineering | |
This prepares the switch to adding more sources than web URLs. Everything providing an io.Reader can then simply use this internal function in the background to avoid code duplication. |