Itoa in Go

Posted by GoDoc
Public (Editable by Users)

Itoa is equivalent to FormatInt(int64(i), 10).

Go
Edit
package main

import (
	"fmt"
	"strconv"
)

func main() {
	i := 10
	s := strconv.Itoa(i)
	fmt.Printf("%T, %v\n", s, s)
}