https://github.com/natac13/advent-of-code-go
https://github.com/natac13/advent-of-code-go
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/natac13/advent-of-code-go
- Owner: natac13
- Created: 2024-12-20T13:06:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-20T14:03:53.000Z (about 1 year ago)
- Last Synced: 2024-12-20T15:22:09.147Z (about 1 year ago)
- Language: Go
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code - Go Solutions
## Setup
1. Create a `.env` file with your Advent of Code session token:
```
AOC_SESSION=your_session_token_here
```
To get your session token, login to Advent of Code, inspect your cookies, and copy the value of the 'session' cookie.
2. Create a new day's solution:
```bash
make new year=2023 day=1
```
3. Run a specific solution:
```bash
make run year=2023 day=1
```
## Project Structure
```
.
├── internal/
│ └── utils/ # Common utilities
├── yearXXXX/ # Year folders
│ └── dayXX/ # Day folders
│ ├── main.go # Solution code
│ └── input.txt # Day's input
└── main.go # Entry point
```