FormatBool returns "true" or "false" according to the value of b.
package main import ( "fmt" "strconv" ) func main() { v := true s := strconv.FormatBool(v) fmt.Printf("%T, %v\n", s, s) }