mirror of
https://github.com/onyx-and-iris/aoc2024.git
synced 2026-04-08 18:13:36 +00:00
remove log.Fatal's from solve.go, return values back to main.
This commit is contained in:
@@ -25,5 +25,10 @@ func main() {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
problems.Solve(data)
|
||||
one, two, err := problems.Solve(data)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
fmt.Printf("solution one: %d\nsolution two: %d\n", one, two)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user