Refactor some of our tool code.
This commit is contained in:
parent
4cc37c6e39
commit
2614bb2def
16 changed files with 29 additions and 31 deletions
|
@ -8,7 +8,6 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"git.annabunch.es/annabunches/adventofcode/2020/lib/fileutils"
|
||||
"git.annabunch.es/annabunches/adventofcode/2020/lib/util"
|
||||
)
|
||||
|
||||
|
@ -130,7 +129,7 @@ func makeInt(input string) int {
|
|||
|
||||
func main() {
|
||||
step := os.Args[1]
|
||||
values := fileutils.InputParserStrings(os.Args[2])
|
||||
values := util.InputParserStrings(os.Args[2])
|
||||
values = util.SplitOnBlankLine(values)
|
||||
|
||||
fmt.Println("Valid Passports:", countValidPassports(values, step))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue