Documentation ¶ Index ¶ type Puzzle func NewPuzzleSolver[T any](name string, normalizeInput func(string) T, part1 func(T) (string, error), ...) Puzzle[T] func (p Puzzle[T]) NormalizeInput(input string) T func (p Puzzle[T]) SolvePart(part int, input string) string type PuzzleSolution Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Puzzle ¶ type Puzzle[T any] struct { // contains filtered or unexported fields } func NewPuzzleSolver ¶ func NewPuzzleSolver[T any](name string, normalizeInput func(string) T, part1 func(T) (string, error), part2 func(T) (string, error)) Puzzle[T] func (Puzzle[T]) NormalizeInput ¶ func (p Puzzle[T]) NormalizeInput(input string) T func (Puzzle[T]) SolvePart ¶ func (p Puzzle[T]) SolvePart(part int, input string) string type PuzzleSolution ¶ type PuzzleSolution[T any] struct { Part1 string Part2 string Error error } Source Files ¶ View all Source files puzzle.go Click to show internal directories. Click to hide internal directories.