input

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package input provides access to embedded puzzles input files.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound returns when puzzle input is not yet unlocked or invalid date passed.
	ErrNotFound = errors.New("puzzle inout not found")
	// ErrUnauthorized returns when session is empty or invalid.
	ErrUnauthorized = errors.New("unauthorized")
)

Functions

func Get added in v0.19.0

func Get(ctx context.Context, d Date, session string) ([]byte, error)

Get returns puzzle input.

Types

type Date added in v0.19.0

type Date struct {
	Year string
	Day  string
}

Date holds date info.

func (Date) String added in v0.19.0

func (d Date) String() string

Jump to

Keyboard shortcuts

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