Advent of Code 2026: Day Two (Golang)
Welcome back to Day Two! Since we are going to be using the same flags and input code for each day of our challenge, the first step today is abstracting that part into a reusable library.
Abstract Input Control
Previously our file tree looked like this:
.
├── day1
│ ├── main.go
│ ├── main_test.go
│ ├── real.input
│ └── test.input
└── README.md
So we will be creating a new top level directory called internal to hold our reusable code.