patched some warning for raw int to string conversions

This commit is contained in:
alexchao26
2020-12-28 00:41:49 -05:00
parent 077378f12c
commit c2451d4268
7 changed files with 20 additions and 11 deletions
+3 -1
View File
@@ -6,6 +6,8 @@ import (
"strconv"
"strings"
"github.com/alexchao26/advent-of-code-go/cast"
"github.com/alexchao26/advent-of-code-go/util"
)
@@ -80,7 +82,7 @@ func (robot *Robot) GetFloorGrid() {
row++
robot.floorGrid = append(robot.floorGrid, []string{})
default:
tileType := string(v)
tileType := cast.ASCIIIntToChar(v)
robot.floorGrid[row] = append(robot.floorGrid[row], tileType)
}
}