/aoc2022

advent of code 2022

Primary LanguageGo

Advent of Code 2022 - golang

Initial setup

First create your .env file by copying .env.example

cp .env.example .env
  1. Login on https://adventofcode.com/ and grab your session cookie ID.
  2. Input into .env file

Start new day

./next.sh

This prepares a new dir, copies templates and downloads your input.

To run tests in a module.

go test -run ''

To run a particular day, cd to dir and:

got run aoc01.go  # for day 1, etc