Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SolveNothingSolver ¶
type SolveNothingSolver struct { }
SolveNothingSolver is a solver that doesn't actually solve anything :) Implements the solver interface but does nothing with the input when called and never returns errors. It is intended to be used as a placeholder in places where a Solver is required.
func NewSolveNothing ¶
func NewSolveNothing() *SolveNothingSolver
NewSolveNothing gets a new SolveNothingSolver
func (*SolveNothingSolver) Part1 ¶
func (ns *SolveNothingSolver) Part1() (string, error)
Part1 implements the Solver interface. Returns the empty string as the part 1 output and never returns an error != nil.
func (*SolveNothingSolver) Part2 ¶
func (ns *SolveNothingSolver) Part2() (string, error)
Part2 implements the Solver interface. Returns the empty string as the part 2 output and never returns an error != nil.
func (*SolveNothingSolver) ProcessInput ¶
func (ns *SolveNothingSolver) ProcessInput(input string) error
ProcessInput implements the Solver interface, but does nothing with the input. Error is always nil.