How to correctly add \x into string to get the correct conversion of hex value to int or float

It was untested code off the top of my head. Add a uint8 type conversion in the next to last line.

https://go.dev/tour/basics/13