如何在 Go 中将 int 值转换为字符串?
问题描述:
i := 123
s := string(i)
s 是E",但我想要的是123"
s is 'E', but what I want is "123"
请告诉我如何获得123".
Please tell me how can I get "123".
而在 Java 中,我可以这样做:
And in Java, I can do in this way:
String s = "ab" + "c" // s is "abc"
如何在 Go 中concat
两个字符串?
how can I concat
two strings in Go?