Compare commits
4 Commits
e4f381df4b
...
change-inp
| Author | SHA1 | Date | |
|---|---|---|---|
| df779eb510 | |||
| 79f63b0bf0 | |||
| 492d2a602a | |||
| fc9a332e63 |
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@@ -1,8 +1,5 @@
|
|||||||
name: Build
|
name: Build
|
||||||
on:
|
on: [push]
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- "^test$"
|
|
||||||
jobs:
|
jobs:
|
||||||
gobuild:
|
gobuild:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -17,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
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
# Advent of Code 2023
|
|
||||||
|
|
||||||
An attempt to start programming again.
|
|
||||||
|
|
||||||
- [Day 1](./day01/trebuchet.go)
|
|
||||||
- [Day 2](./day02/lottacubes.go)
|
|
||||||
|
|
||||||
This repo gets automatically mirrored to [Github](https://github.com/Doddophonique/aoc2023).
|
|
||||||
24
UNLICENSE
24
UNLICENSE
@@ -1,24 +0,0 @@
|
|||||||
This is free and unencumbered software released into the public domain.
|
|
||||||
|
|
||||||
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
||||||
distribute this software, either in source code form or as a compiled
|
|
||||||
binary, for any purpose, commercial or non-commercial, and by any
|
|
||||||
means.
|
|
||||||
|
|
||||||
In jurisdictions that recognize copyright laws, the author or authors
|
|
||||||
of this software dedicate any and all copyright interest in the
|
|
||||||
software to the public domain. We make this dedication for the benefit
|
|
||||||
of the public at large and to the detriment of our heirs and
|
|
||||||
successors. We intend this dedication to be an overt act of
|
|
||||||
relinquishment in perpetuity of all present and future rights to this
|
|
||||||
software under copyright law.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
||||||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
||||||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
||||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
||||||
OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
For more information, please refer to <http://unlicense.org/>
|
|
||||||
1
day01/inputs
Symbolic link
1
day01/inputs
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../inputs
|
||||||
@@ -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
1
day02/inputs
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../inputs
|
||||||
@@ -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()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user