mirror of
https://github.com/onyx-and-iris/aoc2024.git
synced 2025-01-10 06:40:47 +00:00
19 lines
205 B
Go
19 lines
205 B
Go
package one
|
|
|
|
import (
|
|
"bufio"
|
|
"io"
|
|
)
|
|
|
|
func parseLines(r io.Reader) error {
|
|
scanner := bufio.NewScanner(r)
|
|
for scanner.Scan() {
|
|
}
|
|
|
|
if err := scanner.Err(); err != nil {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|