how I forgot that

This commit is contained in:
mertoalex 2024-04-24 01:43:22 +03:00
parent eb65c2c609
commit a4a719cff6
2 changed files with 4 additions and 4 deletions

6
bf.go
View File

@ -177,11 +177,11 @@ func convertHex(hex string) rl.Color {
hex2 := hex[2:4]
hex3 := hex[4:6]
decimal, err := strconv.ParseInt(hex1, 16, 64)
checklog(err)
checkLog(err)
decimal2, err := strconv.ParseInt(hex2, 16, 64)
checklog(err)
checkLog(err)
decimal3, err := strconv.ParseInt(hex3, 16, 64)
checklog(err)
checkLog(err)
return rl.NewColor(uint8(decimal), uint8(decimal2), uint8(decimal3), 255)
}

View File

@ -8,7 +8,7 @@ func check(Error error) {
}
}
func checklog(Error error) {
func checkLog(Error error) {
if Error != nil {
fmt.Println("error:", Error)
}