【发布时间】:2017-06-06 20:34:30
【问题描述】:
我正在尝试使用uint64 打印string,但我使用的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 go type-conversion strconv