Golang strconv.FormatInt() and FormatUint() functions example

package strconv

Golang strconv.FormatInt() and FormatUint() functions usage example

 package main

 import (
  "fmt"
  "strconv"
 )

 func main() {
  //func FormatInt(i int64, base int) string

  str := strconv.FormatInt(int64(112323223), 10)

  fmt.Println(str)

 }

References :

http://golang.org/pkg/strconv/#FormatInt

http://golang.org/pkg/strconv/#FormatUint

Advertisement