advent-of-code-go

module
v0.0.0-...-3a05015 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT

README

Advent of Code Go

Combined solutions from multiple Advent of Code challenges

Usage

Starter directories for each puzzle can be generated with the included newday program.

$ ./bin/newday -h
Usage of ./bin/newday:
  -day int
        day number to create [0-99]
  -dir string
        directory in which to generate the new day files (default ".")
  -year int
        year to create day in (default 2024)

$ ./bin/newday -day 1
$ ./bin/newday -year 2015 -day 1

The included Makefile can be used to quickly execute all puzzle tests.

# The default target both executes all tests and builds the newday program.
$ make

A specific year or day can be tested by manually invoking the Go CLI.

$ go test ./years/2020/...
$ go test ./years/2020/day16/...

Background

This repo consolidates my previous Advent of Code projects into a single location. This is being done both to reduce repo-sprawl and to encourage increased investment in a single utility library.

Jump to

Keyboard shortcuts

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