🎄 Advent of Code 2021 🎄


1 2 3 4 5 6 7 8 9 10 11
Go ⭐⭐ ⭐⭐ ⭐⭐ ⭐⭐ ⭐⭐ ⭐⭐ ⭐⭐ ⭐⭐ ⭐⭐ ⭐⭐ ⭐⭐
12 13 14 15 16 17 18 19 20 21 22 23 24 25
Go ⭐⭐ ⭐⭐ ⭐⭐ ⭐⭐ ⭐⭐ ⭐⭐ ⭐⭐ ⭐⭐ ⭐⭐ ⭐⭐ ⭐⭐ ⭐⭐

Go

Architecture

For Day1, you can edit the following file:

  • input/day1.txt (Containing the dataset)
  • go/day1/main.go (Containing the code)
  • go/day1/main_test.go (Containing the test set)

Commands

For Day1, you can cd into go/day1/ and then use the following commands:

  • go run . to run the code against the dataset
  • echo "my-data-set" | go run . to run the code against data provided on stdin
  • go test . to run the test set