output: refactor to use go.bobheadxi.dev/streamline under the hood #48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change swaps out
run.Output's internals withgo.bobheadxi.dev/streamline. The interface is unchanged except for the addition ofWithPipelinethat allows compatibility withstreamline/pipeline, and all tests pass with some minor adjustments (such as correctly returningio.EOFon reads that reach the end of input).streamlineis a library I've been working on on the side to generalize some of the ideas ofrun.Outputfor arbitrary input. The code is simpler and easier to maintain (I wrote a lot of weird stuff into the initialrun.Outputimplementation), and I'll probably continue working on it to improve the performance and fix issues and whatnot :)