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

We can use strconv package’s Itoa function.

Support On Demand!

                                         
Golang