modified scripts to use a folder for each day - prevent a huge package "namespace" headache

This commit is contained in:
alexchao26
2020-11-27 14:27:43 -05:00
parent 4fc1a1e94f
commit 045d73b069
6 changed files with 53 additions and 18 deletions
+1 -1
View File
@@ -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)