最佳答案
我试图打印一个 string
与 uint64
,但没有组合的 strconv
方法,我使用是工作。
log.Println("The amount is: " + strconv.Itoa((charge.Amount)))
给我:
cannot use charge.Amount (type uint64) as type int in argument to strconv.Itoa
我怎样才能打印这个 string
?