mirror of
https://github.com/onyx-and-iris/aoc2024.git
synced 2025-01-09 22:30:47 +00:00
24 lines
392 B
Go
24 lines
392 B
Go
package day01
|
|
|
|
import (
|
|
"fmt"
|
|
"log"
|
|
|
|
"github.com/onyx-and-iris/aoc2024/day-01/internal/one"
|
|
"github.com/onyx-and-iris/aoc2024/day-01/internal/two"
|
|
)
|
|
|
|
func Solve(data []byte) {
|
|
val, err := one.Solve(data)
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
fmt.Printf("solution one: %d\n", val)
|
|
|
|
val, err = two.Solve(data)
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
fmt.Printf("solution two: %d\n", val)
|
|
}
|