solvers

package
v0.0.0-...-359cf57 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 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
2018
2019
day01_2019
Package day01_2019 contains the solver for Advent of Code - Day 1: The Tyranny of the Rocket Equation
Package day01_2019 contains the solver for Advent of Code - Day 1: The Tyranny of the Rocket Equation
day02_2019
Package day02_2019 contains the solver for Advent of Code - Day 2: 1202 Program Alarm
Package day02_2019 contains the solver for Advent of Code - Day 2: 1202 Program Alarm
day03_2019
Package day03_2019 contains the solver for Advent of Code - Day 3: Crossed Wires
Package day03_2019 contains the solver for Advent of Code - Day 3: Crossed Wires
day04_2019
Package day04_2019 contains the solver for Advent of Code - Day 4: Secure Container
Package day04_2019 contains the solver for Advent of Code - Day 4: Secure Container
day05_2019
Package day05_2019 contains the solver for Advent of Code - Day 5: Sunny with a Chance of Asteroids
Package day05_2019 contains the solver for Advent of Code - Day 5: Sunny with a Chance of Asteroids
day06_2019
Package day06_2019 contains the solver for Advent of Code - Day 6: Universal Orbit Map
Package day06_2019 contains the solver for Advent of Code - Day 6: Universal Orbit Map
day07_2019
Package day07_2019 contains the solver for Advent of Code - Day 7: Amplification Circuit
Package day07_2019 contains the solver for Advent of Code - Day 7: Amplification Circuit
day08_2019
Package day08_2019 contains the solver for Advent of Code - Day 8: Space Image Format
Package day08_2019 contains the solver for Advent of Code - Day 8: Space Image Format
day09_2019
Package day09_2019 contains the solver for Advent of Code - Day 9: Sensor Boost
Package day09_2019 contains the solver for Advent of Code - Day 9: Sensor Boost
day10_2019
Package day10_2019 contains the solver for Day 10: Monitoring Station
Package day10_2019 contains the solver for Day 10: Monitoring Station
2020

Jump to

Keyboard shortcuts

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