Refactor some of our tool code.
This commit is contained in:
parent
4cc37c6e39
commit
2614bb2def
16 changed files with 29 additions and 31 deletions
|
@ -5,7 +5,7 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
|
||||
"git.annabunch.es/annabunches/adventofcode/2020/lib/fileutils"
|
||||
"git.annabunch.es/annabunches/adventofcode/2020/lib/util"
|
||||
)
|
||||
|
||||
type SumTracker map[int][]Tuple
|
||||
|
@ -85,7 +85,7 @@ func sumMinMax(values []int) int {
|
|||
|
||||
func main() {
|
||||
step := os.Args[1]
|
||||
values := fileutils.InputParserInts(os.Args[2])
|
||||
values := util.InputParserInts(os.Args[2])
|
||||
|
||||
var badValue int
|
||||
sumMap := make(SumTracker)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue