fetch

package
v0.0.0-...-5f802d3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: BlueOak-1.0.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Day

func Day(ctx context.Context, session *http.Cookie, year, day int) (*model.Day, error)

Day will perform the necessary HTTP magic to get an Advent of Code day for the given year and date.

func FirefoxCookie

func FirefoxCookie() (*http.Cookie, error)

FirefoxCookie reads the adventofcode.com session cookie from the default profile in the local install of Firefox.

func Input

func Input(ctx context.Context, session *http.Cookie, year, day int) (string, error)

Input fetches the Advent of Code puzzle input for the given year and day.

Types

This section is empty.

Jump to

Keyboard shortcuts

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