2023-12-04 18:43:57 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"log"
|
2023-12-05 19:38:55 +00:00
|
|
|
|
|
|
|
"codeflow.dananglin.me.uk/apollo/advent-of-code/internal/common"
|
2023-12-04 18:43:57 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2023-12-05 19:38:55 +00:00
|
|
|
document, err := common.ReadFile("2023/day-1/files/input")
|
2023-12-04 18:43:57 +00:00
|
|
|
if err != nil {
|
|
|
|
log.Fatalf("Error: Unable to retrieve the calibration document; %v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
fmt.Printf("[Part 1] Total sum of calibration values: %d\n", partOneCalculateSumCalibrationValues(document))
|
|
|
|
fmt.Printf("[Part 2] Total sum of calibration values: %d\n", partTwoCalculateSumCalibrationValues(document))
|
|
|
|
}
|