How to convert uint64 to string
strconv.Itoa() expects a value of type int, so you have to give it that: log.Println(“The amount is: ” + strconv.Itoa(int(charge.Amount))) But know that this may lose precision if int is 32-bit (while uint64 is 64), also sign-ness is different. strconv.FormatUint() would be better as that expects a value of type uint64: log.Println(“The amount is: ” … Read more