Gostrconvstrconv.Itoa
maps.Clone

strconv.Itoastrconv

strconv.Atoi

Converts an integer to its decimal string representation.

문법

strconv.Itoa(i int) string

예제

아래 값을 입력하면 예제에 즉시 반영됩니다.

strconv
Itoa
fmt
Println
Printf
string
s := strconv.Itoa(42)
fmt.Println(s)        // "42"
fmt.Printf("%T
", s) // string