diff --git a/internal/2015/DayEight/code.go b/internal/2015/DayEight/code.go new file mode 100644 index 0000000..2c5e50e --- /dev/null +++ b/internal/2015/DayEight/code.go @@ -0,0 +1,17 @@ +package dayeight + +import ( + "os" + "strings" + + "advent-of-code/internal/registry" +) + +func init() { + registry.Register("2015D8", ParseInput, PartOne, PartTwo) +} + +func ParseInput(filepath string) []string { + content, _ := os.ReadFile(filepath) + return strings.Split(string(content), "\n") +}