aoc

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const FirstYear = 2015

Variables

View Source
var Timezone = time.FixedZone("EST/UTC-5", -5*60*60)

Timezone is when Eric Wastl unlocks puzzles and starts messing up the sleeping schedules of Europeans.

Functions

func Years

func Years() []int

Years returns all released AoCs years in ascending order. It should be noted that this uses the local time of the user's machine. Which when messed with could lead to an incorrect list of AoC years.

Types

type Day

type Day int
const (
	FirstDay Day = 1
	LastDay      = FirstDay + 24
)

type Part

type Part rune
const (
	Part1 Part = iota + 'A'
	Part2
)

func (Part) String

func (p Part) String() string

Jump to

Keyboard shortcuts

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