转换为 字符串
如果强制类型转换失败
可以使用strconv包

1
strconv.FormatBool(bool)

即可将bool转为str