Compare commits

..

2 Commits

Author SHA1 Message Date
492d2a602a Trying to run the code for day01
Some checks failed
Build / gobuild (push) Failing after 51s
2023-12-02 16:50:46 +00:00
fc9a332e63 Changed folder structure 2023-12-02 16:49:56 +00:00
5 changed files with 4 additions and 2 deletions

View File

@ -14,6 +14,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

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()

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()