input

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 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 ClientDo added in v1.6.1

type ClientDo interface {
	Do(*http.Request) (*http.Response, error)
}

ClientDo provides the interface for custom HTTP client implementations.

var Client ClientDo = http.DefaultClient

Client is the default Client and is used by Get, Head, and Post.

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