aoc2024/.scaffold/aoc/{{ .Project }}/internal/one/solve.go
onyx-and-iris 88f082080d remove scaffold.sh
add scaffold aoc template
2024-12-27 22:13:33 +00:00

30 lines
356 B
Go

package one
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
}