-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make LineMerger work on an interface
Our own PageSignalsScanner is essentially the same as a bufio.Scanner, but without serialization. We could either write (quite a bit of) code to serialize the lines to a buffer and then consume it right away in a bufio.Scanner, or we abstract the functionality into a common interface. Opting for the latter, because it's conceptually simpler. Probably also more efficient (no serialization), but that's not the reason for the choice.
- Loading branch information
Showing
3 changed files
with
26 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters