Go strconv Package FormatBool()
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)) }