为什么80%的码农都做不了架构师?>>> int型转成字符串 var i int i = 6666 s := fmt.Sprintf("%d", i) 或 s := strconv.Itoa(i) 转载于:https://my.oschina.net/golang/blog/90264