Go strconv Package FormatBool()

Description

Go strconv Package FormatBool()

package main/*from w  ww. j a  va 2  s .com*/

import (
  "fmt"
  "reflect"
  "strconv"
)

func main() {
  var b bool = true
  fmt.Println(reflect.TypeOf(b))

  var s string = strconv.FormatBool(true)
  fmt.Println(reflect.TypeOf(s))
}



PreviousNext

Related