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
+2 -1
View File
@@ -6,6 +6,7 @@ import (
"strconv"
"strings"
"github.com/alexchao26/advent-of-code-go/cast"
"github.com/alexchao26/advent-of-code-go/util"
)
@@ -38,7 +39,7 @@ func main() {
// Print the output TEXT
for _, v := range comp.Outputs {
fmt.Printf("%v", string(v))
fmt.Printf("%v", cast.ASCIIIntToChar(v))
}
fmt.Printf("Hull damage: %v\n", comp.Outputs[len(comp.Outputs)-1])