t := strconv.Itoa(123)
fmt.Printf("type = %T, val = %s", t, t)

We can use strconv package’s Itoa function.

Need Help With Golang Development?

Work with our skilled Golang developers to accelerate your project and boost its performance.

Hire Golang Developer

Support On Demand!

Related Q&A