mirror of
https://github.com/Threnklyn/advent-of-code-go.git
synced 2026-06-07 20:53:30 +02:00
updated util packages
This commit is contained in:
+2
-1
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/alexchao26/advent-of-code-go/mathutil"
|
||||
"github.com/alexchao26/advent-of-code-go/util"
|
||||
)
|
||||
|
||||
@@ -58,7 +59,7 @@ func parseInput(input string) map[string]map[string]int {
|
||||
continue
|
||||
}
|
||||
parts := strings.Split(content, " ")
|
||||
graph[color][parts[1]+" "+parts[2]] = util.StrToInt(parts[0])
|
||||
graph[color][parts[1]+" "+parts[2]] = mathutil.StrToInt(parts[0])
|
||||
}
|
||||
}
|
||||
return graph
|
||||
|
||||
Reference in New Issue
Block a user