solvers

package
v0.0.0-...-f96c37d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 0 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL