Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andrewstuart/aoc2021


https://github.com/andrewstuart/aoc2021

advent-of-code advent-of-code-2021 generics go go-1-18 golang

Last synced: 6 days ago
JSON representation

Awesome Lists containing this project

README

        

This is my repo for aoc2021. I decided as soon as the go1.18 beta was released
to work on this using Go generics as a perfect way to experiment with Go
generics and get things wrong and messy in non-production code.

I'm using [my fork of aocdl](https://github.com/andrewstuart/advent-of-code-downloader) to simplify the creation of
each day's input file and tests. e.g. `mkdir -p 2021/day12 && aocdl -output
../input -force -story-output a.html` plus the necessary config in
~/.aocdlconfig:

```json
{
"session-cookie": "",
"story-out": "story.html",
"test-output": "../test",
"test-template-output": "./main_test.go",
"test-template": "../../test_template.go.tpl",
"template": "../../main_template.go.tpl",
"template-output": "./main.go"
}
```