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 {
106106loadKeypadPart2
107107keyboard
108108
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
114114
115115start at `5`
116116
@@ -139,9 +139,10 @@ func loadKeypadPart2() keypad {
139139/*
140140loadKeypadPart1
141141keyboard
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
145146
146147let's predict that this is a 2 dimension matrix and 5 is a 1,1
147148*/
Original file line number Diff line number Diff line change 55//
66// Example:
77//
8- // type solver struct {
8+ // type solver struct {
99// name string
1010// }
1111//
1212// func init() {
13- // puzzleName, err := solutions.MakeName("2019", "day01")
13+ // puzzleName, err := solutions.MakeName("2019", "day01")
1414// if err != nil {
1515// panic(err)
1616// }
17- // puzzles.Register(puzzleName, solver{
17+ // puzzles.Register(puzzleName, solver{
1818// name: puzzleName,
1919// })
20- // }
20+ // }
2121//
2222// Then to register solution in the list of all solutions: make a blank import of package with puzzle solution
2323// at register_<year>.go
2424//
25- // import _ "github.com/obalunenko/advent-of-code/puzzles/solutions/day01"
25+ // import _ "github.com/obalunenko/advent-of-code/puzzles/solutions/day01"
2626//
2727// And then blank import solutions package at main.go to register all solutions
2828//
29- // import _ "github.com/obalunenko/advent-of-code/puzzles/solutions
29+ // import _ "github.com/obalunenko/advent-of-code/puzzles/solutions
3030package solutions
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ TOOLS_DIR=${REPO_ROOT}/tools
99
1010echo " ${SCRIPT_NAME} is running... "
1111
12- go env -w GOPROXY=https://proxy.golang.org,direct
13-
1412sync_vendor () {
1513 go mod tidy -v
1614 go mod vendor
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ echo "${SCRIPT_NAME} is running... "
88
99GOTEST=" go test -v "
1010if command -v " gotestsum" & > /dev/null; then
11- GOTEST=" gotestsum --format pkgname --"
11+ GOTEST=" gotestsum --format pkgname-and-test-fails --"
1212fi
1313
1414${GOTEST} -race ./...
You can’t perform that action at this time.
0 commit comments