advent

package
v0.0.0-...-552ec1b Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CookieVar = "ADVENT_COOKIE"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetInput(day int) (*Input, error)
}

func NewClient

func NewClient(year int, cookie string) (Client, error)

type Input

type Input []string

func (*Input) ToInt

func (in *Input) ToInt() ([]int, error)

type Runner

type Runner interface {
	Run(year, day int, s Solution)
}

func NewRunner

func NewRunner() Runner

type Solution

type Solution func(input *Input) (int, error)

Jump to

Keyboard shortcuts

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