updated template script for test args order

This commit is contained in:
alexchao26
2020-12-13 02:34:03 -05:00
parent 9e86d9784d
commit eb2eacdf9e
26 changed files with 333 additions and 362 deletions
+2 -7
View File
@@ -5,6 +5,7 @@ import (
"fmt"
"strings"
"github.com/alexchao26/advent-of-code-go/mathutil"
"github.com/alexchao26/advent-of-code-go/util"
)
@@ -33,19 +34,13 @@ func part1(input string) int {
}
func part2(input string) int {
parsed := parseInput(input)
_ = parsed
return 0
}
func parseInput(input string) []int {
var ans []int
func parseInput(input string) (ans []int) {
lines := strings.Split(input, "\n")
for _, l := range lines {
ans = append(ans, mathutil.StrToInt(l))
}
return ans
}