Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/andrewstuart/aoc2021
- Owner: andrewstuart
- License: mit
- Created: 2021-12-02T04:36:52.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-18T17:59:04.000Z (about 3 years ago)
- Last Synced: 2024-06-20T15:48:04.595Z (8 months ago)
- Topics: advent-of-code, advent-of-code-2021, generics, go, go-1-18, golang
- Language: HTML
- Homepage:
- Size: 11.1 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"
}
```