var a uint = 1
b := strconv.Itoa(int(a))
c := string(b)
d := string(a)
fmt.Println(c)

使用strconv的Itoa方法先将uint转换成int类型,再将int类型转换成string。

相关文章: