aoc2024/.scaffold/aoc/{{ .Project }}/internal/two/solve.go

30 lines
356 B
Go
Raw Normal View History

package two
import (
"bufio"
"bytes"
"io"
)
func Solve(buf []byte) (int, error) {
r := bytes.NewReader(buf)
err := parseLines(r)
if err != nil {
return 0, err
}
return 0, nil
}
func parseLines(r io.Reader) error {
scanner := bufio.NewScanner(r)
for scanner.Scan() {
}
if err := scanner.Err(); err != nil {
return err
}
return nil
}