Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jzimbel/adventofcode-go
Go Solutions and Utilities for Advent of Code puzzles
https://github.com/jzimbel/adventofcode-go
advent-of-code advent-of-code-2019 adventofcode go golang puzzle
Last synced: 21 days ago
JSON representation
Go Solutions and Utilities for Advent of Code puzzles
- Host: GitHub
- URL: https://github.com/jzimbel/adventofcode-go
- Owner: jzimbel
- License: mit
- Created: 2019-11-23T23:06:49.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-28T04:58:06.000Z (almost 5 years ago)
- Last Synced: 2024-11-30T10:12:30.313Z (25 days ago)
- Topics: advent-of-code, advent-of-code-2019, adventofcode, go, golang, puzzle
- Language: Go
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Advent of Code solutions
This project holds my Go solutions + utilities for **[Advent of Code](https://adventofcode.com/)** puzzles over the years.
## Prereqs
To run solutions and tests, the following must be true:
- You have Go [installed](https://golang.org/dl/)
- The `$GOPATH` env var is set
- This repository is cloned into `$GOPATH/src/github.com/jzimbel/adventofcode-go`
- Your `$PATH` includes `$GOPATH/bin`## Run it
```sh
$ cd $GOPATH/src/github.com/jzimbel/adventofcode-go
$ go get ./... # installs all project dependencies
$ go install # compiles and installs project to $GOPATH/bin/
$ adventofcode-go
```If the input for the solution you're trying to run hasn't already been saved, the program will try to download it from the Advent of Code site first. If this is your first time downloading an input, you'll be asked to provide your unique session id. It's held in a cookie named `session` saved by the site—you can view it using your browser's dev tools or a number of cookie-viewing browser extensions.
## Test it
```sh
$ go test github.com/jzimbel/adventofcode-go
```## Copy it
If you like the setup I've got here, feel free to use it yourself. Or let me know if it's garbage! This is my first time making a proper Go project from scratch, so I'm sure it's not perfect. ¯\\\_(ツ)\_/¯