我正试图打印 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
这个呢?
我正试图打印 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
这个呢?
我正在尝试使用 给我: p>
如何打印此 uint64 code>打印
string code> 但我使用的
strconv code>方法没有任何组合有效。 p>
log.Println(“数量为:” + strconv.Itoa((charge .Amount))))
code> pre>
不能使用charge.Amount(类型uint64)作为类型 int in strconv.Itoa code> p>
string code>? p>
div>