Logo

Programming-Idioms

History of Idiom 55 > diff from v18 to v19

Edit summary for version 19 by :

Version 18

2015-10-02, 13:58:00

Version 19

2015-10-02, 13:59:24

Idiom #55 Convert integer to string

Create the string representation s (in radix 10) of integer value i.

Idiom #55 Convert integer to string

Create the string representation s (in radix 10) of integer value i.

Imports
import "strconv"
Imports
import "strconv"
Code
s := strconv.Itoa(i)
Code
s := strconv.Itoa(i)
Comments bubble
When i has type int.
Origin
http://stackoverflow.com/a/10105983/871134
Origin
http://stackoverflow.com/a/10105983/871134
Demo URL
http://play.golang.org/p/MuxyNNp2ws
Demo URL
http://play.golang.org/p/An5ev_G8rS