Versions in this module Expand all Collapse all v0 v0.4.4 Aug 24, 2020 Changes in this version + var ErrSolverInvalidSignature = errors.New("invalid signature in plugin") + func FromPluginBoth(p *Plugin, d aoc.Day) (Func, Func, error) + type Func = func(Input) (Output, error) + func FromPlugin(p *Plugin, d aoc.Day, pt aoc.Part) (Func, error) + type Input = string + type Output = interface + type Plugin = plugin.Plugin + type Result struct + Answer Output + Attr ResultAttribute + Err error + func (s Result) String() string + type ResultAttribute struct + B *testing.BenchmarkResult + T *time.Duration + func (r ResultAttribute) String() string + type ResultKind int + const BenchmarkResult + const TimeResult + type Solver struct + Solver Func + func (s Solver) Result(input string, rk ResultKind) Result + func (s Solver) Solve(in Input) (Output, error)