From d19c8e2dcd341b6ac7fc12731c9cae9ffa62e646 Mon Sep 17 00:00:00 2001 From: Kharec Date: Tue, 3 Feb 2026 19:00:14 +0100 Subject: [PATCH] feat: parse input --- internal/2025/DayTwelve/code.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 internal/2025/DayTwelve/code.go diff --git a/internal/2025/DayTwelve/code.go b/internal/2025/DayTwelve/code.go new file mode 100644 index 0000000..7539957 --- /dev/null +++ b/internal/2025/DayTwelve/code.go @@ -0,0 +1,17 @@ +package daytwelve + +import ( + "os" + "strings" + + "advent-of-code/internal/registry" +) + +func init() { + registry.Register("2025D12", ParseInput, PartOne, PartTwo) +} + +func ParseInput(filepath string) []string { + content, _ := os.ReadFile(filepath) + return strings.Split(string(content), "\n") +}