From 8a91af071379af0a938333410b2a878dcc5a7e8c Mon Sep 17 00:00:00 2001 From: Davide Oddone Date: Sat, 2 Dec 2023 16:59:44 +0000 Subject: [PATCH] Fixed a small oversight in folder structure --- day01/day01_input | 1 - day01/inputs | 1 + day01/trebuchet.go | 2 +- day02/day02_input | 1 - day02/inputs | 1 + day02/lottacubes.go | 2 +- 6 files changed, 4 insertions(+), 4 deletions(-) delete mode 120000 day01/day01_input create mode 120000 day01/inputs delete mode 120000 day02/day02_input create mode 120000 day02/inputs diff --git a/day01/day01_input b/day01/day01_input deleted file mode 120000 index c127fa7..0000000 --- a/day01/day01_input +++ /dev/null @@ -1 +0,0 @@ -../inputs/day01_input \ No newline at end of file diff --git a/day01/inputs b/day01/inputs new file mode 120000 index 0000000..a80bb2b --- /dev/null +++ b/day01/inputs @@ -0,0 +1 @@ +../inputs \ No newline at end of file diff --git a/day01/trebuchet.go b/day01/trebuchet.go index 1a7f727..d62f968 100644 --- a/day01/trebuchet.go +++ b/day01/trebuchet.go @@ -109,7 +109,7 @@ func CombineIndexes(s string) int { } func main() { - file, err := os.Open("./day01_input") + file, err := os.Open("./inputs/day01_input") check(err) defer file.Close() diff --git a/day02/day02_input b/day02/day02_input deleted file mode 120000 index be59d2c..0000000 --- a/day02/day02_input +++ /dev/null @@ -1 +0,0 @@ -../inputs/day02_input \ No newline at end of file diff --git a/day02/inputs b/day02/inputs new file mode 120000 index 0000000..a80bb2b --- /dev/null +++ b/day02/inputs @@ -0,0 +1 @@ +../inputs \ No newline at end of file diff --git a/day02/lottacubes.go b/day02/lottacubes.go index 42b53e6..b46856c 100644 --- a/day02/lottacubes.go +++ b/day02/lottacubes.go @@ -140,7 +140,7 @@ func PrintAndWait[T any](x T) { } func main() { - file, err := os.Open("./day02_input") + file, err := os.Open("./inputs/day02_input") check(err) defer file.Close()