There is a script, which creates new golang module for current day. It demands three input arguments:
- Your AoC session cookie
- Number of new day
Session cookie needs to be set for input and name of day downloading. You need to have aocdl go package:
go get -u github.com/GreenLightning/advent-of-code-downloader/aocdl
Example script running:
cd tools
bash newDay.sh "<your_AoC_session_cookie>" 1
Remember to sync new go module (go.mod [PPM]
-> Sync Go Module
)
Try to run main func. If not working try to edit configurations.
Set Run kind to Package
, define package path (module name) and working
directory to include module. For example:
- Package path:
Day-XX-template
- Working directory:
<pwd>/advent-code-2020/Day-XX-template
Make sure that you have Go -> Go Modules -> Enable Go Modules integration
option enabled.