log.Println("The amount is: " strconv.Itoa((charge.Amount))) ' R T2 ]9 H( }: h
给我: 0 z* r# v" e# Acannot use charge.Amount (type uint64) as type int in argument to strconv.Itoa我怎样才能打印这个?string?' T' |/ x8 D8 `* b5 H
* I7 g1 @8 }/ i8 n 解决方案: / o0 P' B$ u& H% D2 ?2 g- F strconv.Itoa()需要一个 type 值int,所以你必须给它:/ M/ k8 l4 U" W8 \" s% S* o4 O: Y