Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPartNotImplemented = errors.New("not implemented")
ErrPartNotImplemented is returned when a specific part (1 or 2) of a day's solution has not been implemented.
View Source
var ErrSolverNotImplemented = errors.New("solver not implemented")
ErrSolverNotImplemented is returned when the solver code is not added.
Functions ¶
This section is empty.
Types ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner manages a collection of Solvers and provides methods to execute them.
type Solver ¶
type Solver interface { // Part1 solves the first part of the puzzle and returns the result. // It should return ErrSolverNotImplemented if the part is not yet implemented Part1(data string) (int, error) // Part2 solves the second part of the puzzle and returns the result. // It should return ErrSolverNotImplemented if the part is not yet implemented Part2(data string) (int, error) }
Solver is the interface that must be implemented by each day's solution. It defines methods to solve both parts of an Advent of Code puzzle.
Click to show internal directories.
Click to hide internal directories.