This question already has an answer here:
I converting hex value to decimal using go using below mentioned code
numberStr := strings.Replace(s, "0x", "", -1)
numberStr = strings.Replace(numberStr, "0X", "", -1)
n, err := strconv.ParseUint(numberStr, 16, 64)
if err != nil {
panic(err)
}
return n
Hexa value is : 0x340aad21b3b700000
but thrown error : strconv.ParseUint: parsing "340aad21b3b700000": value out of range
Can you suggest any alternate solution.
</div>