Merge remote-tracking branch 'gitea/change-inputs-folder'

This commit is contained in:
Davide Oddone 2023-12-03 18:53:33 +01:00
commit 858c57647f
7 changed files with 6 additions and 2 deletions

View File

@ -17,6 +17,8 @@ jobs:
run: go build -v ./day01/*.go run: go build -v ./day01/*.go
- name: Build day two - name: Build day two
run: go build -v ./day02/*.go run: go build -v ./day02/*.go
- name: Run day one
run: go run -v ./day01/*.go
- name: Display Go version - name: Display Go version
run: go version run: go version
- name: List files in the repository - name: List files in the repository

1
day01/inputs Symbolic link
View File

@ -0,0 +1 @@
../inputs

View File

@ -109,7 +109,7 @@ func CombineIndexes(s string) int {
} }
func main() { func main() {
file, err := os.Open("input") file, err := os.Open("./inputs/day01_input")
check(err) check(err)
defer file.Close() defer file.Close()

1
day02/inputs Symbolic link
View File

@ -0,0 +1 @@
../inputs

View File

@ -140,7 +140,7 @@ func PrintAndWait[T any](x T) {
} }
func main() { func main() {
file, err := os.Open("input") file, err := os.Open("./inputs/day02_input")
check(err) check(err)
defer file.Close() defer file.Close()