My results for the Advent of Code 2023.
To run the day 1
, run the following:
make 1
Take for example the day 1
- Create a folder
1
incmd/
to getcmd/1
- Create a file
1.go
in that folder to getcmd/1/1.go
- Create the input file of the day (
1.txt
) ininternal/inputfile/
to getinternal/inputfile/1.txt
- Create the embed script to go with it (
1.go
) ininternal/inputfile/
to getinternal/inputfile/1.go
- In the embed script, use the following template:
package inputfile
import _ "embed"
//go:embed 1.txt
var InputFile1 string