mirror of
https://github.com/Threnklyn/advent-of-code-go.git
synced 2026-06-01 17:58:28 +02:00
modified scripts to use a folder for each day - prevent a huge package "namespace" headache
This commit is contained in:
@@ -18,7 +18,7 @@ func main() {
|
||||
body := fetchers.GetWithAOCCookie(url, cookie)
|
||||
|
||||
// write to file
|
||||
filename := filepath.Join(util.Dirname(), "../../..", fmt.Sprintf("%d/day%02d-input.txt", year, day))
|
||||
filename := filepath.Join(util.Dirname(), "../../..", fmt.Sprintf("%d/day%02d/input.txt", year, day))
|
||||
fetchers.WriteToFile(filename, body)
|
||||
|
||||
fmt.Println("Wrote to file: ", filename)
|
||||
|
||||
Reference in New Issue
Block a user