https://github.com/raagh/aoc-2022
advent of code 2022 in golang
https://github.com/raagh/aoc-2022
Last synced: about 2 months ago
JSON representation
advent of code 2022 in golang
- Host: GitHub
- URL: https://github.com/raagh/aoc-2022
- Owner: Raagh
- License: mit
- Created: 2022-12-28T14:21:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-28T14:23:25.000Z (over 3 years ago)
- Last Synced: 2025-01-15T19:21:31.775Z (over 1 year ago)
- Language: Go
- Size: 24.4 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 Golang Starter
A template for Advent of Code written in Go.
## Usage
You can follow the steps below to install, test, and run the solutions:
$ git clone https://github.com/ljgago/advent-of-code-golang-starter aoc-golang
$ cd aoc-golang
# install dependencies
$ go install
# run tests for day01
$ go test aoc/cmd/day01
# run the day01
$ go run aoc/cmd/day01
## Config
If you like read the inputs directly from web, you needs to set the environment
var `AOC_SESSION`. You can to get the session token from the cookie web browser.
Folder structure:
├── cmd
│ ├── day01
│ │ ├── day01.go
│ │ └── day01_test.go
│ └── template
│ ├── dayXX.go
│ └── dayXX_test.go
├── internal
│ └── utils
│ ├── read_file.go
│ └── read_http.go
└── resources
└── day01.txt
Happy coding!
[MIT License](LICENSE)