How do you convert an int to a string in Golang, and what’s the correct way to concatenate strings?

Hello there!!

I’m working with Go and have a couple of questions about fundamental type conversions and string manipulations.

First, I’m trying to convert an int to a string, like this:

i := 123
s := string(i)`

However, instead of getting "123", I’m getting a strange character ('E'). This indicates I’m not performing a proper golang int to string conversion.

Second, in Java, I can easily concatenate strings like this:

String s = "ab" + "c"; // s is "abc"

I’m looking for the idiomatic way to achieve this type of string concatenation in Go.

Any insights on the correct and proper methods for both of these operations in Go would be greatly appreciated.