File tree Expand file tree Collapse file tree 4 files changed +16
-17
lines changed
internal/puzzles/solutions Expand file tree Collapse file tree 4 files changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -106,11 +106,11 @@ type keypad struct {
106
106
loadKeypadPart2
107
107
keyboard
108
108
109
- 1
110
- 2 3 4
111
- 5 6 7 8 9
112
- A B C
113
- D
109
+ 1
110
+ 2 3 4
111
+ 5 6 7 8 9
112
+ A B C
113
+ D
114
114
115
115
start at `5`
116
116
@@ -139,9 +139,10 @@ func loadKeypadPart2() keypad {
139
139
/*
140
140
loadKeypadPart1
141
141
keyboard
142
- 1 2 3
143
- 4 5 6
144
- 7 8 9
142
+
143
+ 1 2 3
144
+ 4 5 6
145
+ 7 8 9
145
146
146
147
let's predict that this is a 2 dimension matrix and 5 is a 1,1
147
148
*/
Original file line number Diff line number Diff line change 5
5
//
6
6
// Example:
7
7
//
8
- // type solver struct {
8
+ // type solver struct {
9
9
// name string
10
10
// }
11
11
//
12
12
// func init() {
13
- // puzzleName, err := solutions.MakeName("2019", "day01")
13
+ // puzzleName, err := solutions.MakeName("2019", "day01")
14
14
// if err != nil {
15
15
// panic(err)
16
16
// }
17
- // puzzles.Register(puzzleName, solver{
17
+ // puzzles.Register(puzzleName, solver{
18
18
// name: puzzleName,
19
19
// })
20
- // }
20
+ // }
21
21
//
22
22
// Then to register solution in the list of all solutions: make a blank import of package with puzzle solution
23
23
// at register_<year>.go
24
24
//
25
- // import _ "github.com/obalunenko/advent-of-code/puzzles/solutions/day01"
25
+ // import _ "github.com/obalunenko/advent-of-code/puzzles/solutions/day01"
26
26
//
27
27
// And then blank import solutions package at main.go to register all solutions
28
28
//
29
- // import _ "github.com/obalunenko/advent-of-code/puzzles/solutions
29
+ // import _ "github.com/obalunenko/advent-of-code/puzzles/solutions
30
30
package solutions
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ TOOLS_DIR=${REPO_ROOT}/tools
9
9
10
10
echo " ${SCRIPT_NAME} is running... "
11
11
12
- go env -w GOPROXY=https://proxy.golang.org,direct
13
-
14
12
sync_vendor () {
15
13
go mod tidy -v
16
14
go mod vendor
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ echo "${SCRIPT_NAME} is running... "
8
8
9
9
GOTEST=" go test -v "
10
10
if command -v " gotestsum" & > /dev/null; then
11
- GOTEST=" gotestsum --format pkgname --"
11
+ GOTEST=" gotestsum --format pkgname-and-test-fails --"
12
12
fi
13
13
14
14
${GOTEST} -race ./...
You can’t perform that action at this time.
0 commit comments