From 79f63b0bf00fd874c6b021bb97d9bb49348ac061 Mon Sep 17 00:00:00 2001 From: Davide Oddone Date: Sat, 2 Dec 2023 16:56:35 +0000 Subject: [PATCH] Truying to do something really silly with symlinks --- day01/day01_input | 1 + day01/trebuchet.go | 2 +- day02/day02_input | 1 + day02/lottacubes.go | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) create mode 120000 day01/day01_input create mode 120000 day02/day02_input diff --git a/day01/day01_input b/day01/day01_input new file mode 120000 index 0000000..c127fa7 --- /dev/null +++ b/day01/day01_input @@ -0,0 +1 @@ +../inputs/day01_input \ No newline at end of file diff --git a/day01/trebuchet.go b/day01/trebuchet.go index 8d02de1..1a7f727 100644 --- a/day01/trebuchet.go +++ b/day01/trebuchet.go @@ -109,7 +109,7 @@ func CombineIndexes(s string) int { } func main() { - file, err := os.Open("../inputs/day01_input") + file, err := os.Open("./day01_input") check(err) defer file.Close() diff --git a/day02/day02_input b/day02/day02_input new file mode 120000 index 0000000..be59d2c --- /dev/null +++ b/day02/day02_input @@ -0,0 +1 @@ +../inputs/day02_input \ No newline at end of file diff --git a/day02/lottacubes.go b/day02/lottacubes.go index f3455c4..42b53e6 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("../inputs/day02_input") + file, err := os.Open("./day02_input") check(err) defer file.Close()