feat: register D8 and parse input
This commit is contained in:
17
internal/2015/DayEight/code.go
Normal file
17
internal/2015/DayEight/code.go
Normal file
@@ -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")
|
||||
}
|
||||
Reference in New Issue
Block a user