grotere buffer voor scanner

This commit is contained in:
Peter Kleiweg
2026-08-04 13:32:12 +02:00
parent 1de42635d0
commit c37c54148e
26 changed files with 44 additions and 6 deletions

View File

@@ -12,6 +12,7 @@ func main() {
chSignal := make(chan os.Signal, 1)
signal.Notify(chSignal, syscall.SIGPIPE)
scanner := bufio.NewScanner(os.Stdin)
scanner.Buffer(nil, 1000000)
for scanner.Scan() {
line := scanner.Text()
select {